]> git.saurik.com Git - wxWidgets.git/commitdiff
Fix harmless MSVC warning about double to float conversion.
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 13 Aug 2010 11:57:45 +0000 (11:57 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 13 Aug 2010 11:57:45 +0000 (11:57 +0000)
Make the constant double as well as it's compared with other doubles in the
code below.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65292 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/ribbon/art_msw.cpp

index 4041079aeb6bc082697b621185890193355133c5..ad494d5863fcac5ff1f520c48e816f9fdff7c431 100644 (file)
@@ -144,7 +144,7 @@ void wxRibbonMSWArtProvider::SetColourScheme(
 
     // Map primary saturation from [0, 1] to [.25, .75]
     bool primary_is_gray = false;
 
     // Map primary saturation from [0, 1] to [.25, .75]
     bool primary_is_gray = false;
-    const float gray_saturation_threshold = 0.01;
+    static const double gray_saturation_threshold = 0.01;
     if(primary_hsl.saturation <= gray_saturation_threshold)
         primary_is_gray = true;
     else
     if(primary_hsl.saturation <= gray_saturation_threshold)
         primary_is_gray = true;
     else