summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/progressbar.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/progressbar.cpp b/src/gui/progressbar.cpp
index e84c235e..213a7f2d 100644
--- a/src/gui/progressbar.cpp
+++ b/src/gui/progressbar.cpp
@@ -110,7 +110,7 @@ float ProgressBar::getProgress()
void ProgressBar::setColor(
unsigned char newRed, unsigned char newGreen, unsigned char newBlue)
{
- if (!(red == newRed) && (green == newGreen) && (blue == newBlue))
+ if (!(red == newRed) || !(green == newGreen) || !(blue == newBlue))
{
red = newRed;
green = newGreen;