summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 213a7f2d..6c405d0b 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;