X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4cf018e14ea61679b99874765f232b2032b3d3f8..43f4e852a1b2ac37c3db6a2b87315192ac549191:/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; }