summaryrefslogtreecommitdiff
path: root/src/gui/widgets/progressbar.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-10-16 20:39:33 +0300
committerAndrei Karas <akaras@inbox.ru>2012-10-16 20:39:33 +0300
commitbc92643d8db723b5049db2dbad1ce052a0ae77a9 (patch)
tree4471be99711ee310c811e990d7c210e2393aeb6e /src/gui/widgets/progressbar.cpp
parent82cc576b7896f39bcf71aa85c8c4b3ef786c065b (diff)
downloadmv-bc92643d8db723b5049db2dbad1ce052a0ae77a9.tar.gz
mv-bc92643d8db723b5049db2dbad1ce052a0ae77a9.tar.bz2
mv-bc92643d8db723b5049db2dbad1ce052a0ae77a9.tar.xz
mv-bc92643d8db723b5049db2dbad1ce052a0ae77a9.zip
Fix code style and some other minor issues.
Diffstat (limited to 'src/gui/widgets/progressbar.cpp')
-rw-r--r--src/gui/widgets/progressbar.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/widgets/progressbar.cpp b/src/gui/widgets/progressbar.cpp
index 6dc6346b8..5ab6d1280 100644
--- a/src/gui/widgets/progressbar.cpp
+++ b/src/gui/widgets/progressbar.cpp
@@ -56,8 +56,8 @@ ProgressBar::ProgressBar(float progress,
mFillPadding(3)
{
// The progress value is directly set at load time:
- if (progress > 1.0f || progress < 0.0f)
- progress = 1.0f;
+ if (mProgress > 1.0f || mProgress < 0.0f)
+ mProgress = 1.0f;
mColor = Theme::getProgressColor(color >= 0 ? color : 0, mProgress);
mColorToGo = mColor;