diff --git a/source/property.cpp b/source/property.cpp index 054ec23..ab63bcf 100644 --- a/source/property.cpp +++ b/source/property.cpp @@ -20,7 +20,7 @@ Color& Color::combine(double opacity) Color Color::combined(double opacity) const { auto rgb = m_value & 0x00FFFFFF; - auto a = static_cast(std::clamp(0.0, 255.0, opacity * alpha())); + auto a = static_cast(std::clamp(opacity * alpha(), 0.0, 255.0)); return Color(rgb | a << 24); }