X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4cf018e14ea61679b99874765f232b2032b3d3f8..88932ec82d048d006cdc81bd309f5e59aee799ac:/src/ribbon/art_internal.cpp diff --git a/src/ribbon/art_internal.cpp b/src/ribbon/art_internal.cpp index 0e641024ec..b74d33e3a5 100644 --- a/src/ribbon/art_internal.cpp +++ b/src/ribbon/art_internal.cpp @@ -153,7 +153,7 @@ wxRibbonHSLColour::wxRibbonHSLColour(const wxColour& col) hue += 120.0; } else // Max == blue - { + { hue = 60.0 * (red - green) / (Max - Min); hue += 240.0; }