diff options
Diffstat (limited to 'ui/qt/color_utils.cpp')
-rw-r--r-- | ui/qt/color_utils.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/qt/color_utils.cpp b/ui/qt/color_utils.cpp index cb1bdb7ac6..4f27367393 100644 --- a/ui/qt/color_utils.cpp +++ b/ui/qt/color_utils.cpp @@ -73,7 +73,7 @@ const color_t ColorUtils::toColorT(const QColor color) QRgb ColorUtils::alphaBlend(const QColor &color1, const QColor &color2, qreal alpha) { - alpha = qBound(0.0, alpha, 1.0); + alpha = qBound(qreal(0.0), alpha, qreal(1.0)); int r1 = color1.red() * alpha; int g1 = color1.green() * alpha; |