Fix harmless MSVC warning about double to float conversion.

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
This commit is contained in:
Vadim Zeitlin
2010-08-13 11:57:45 +00:00
parent 2fe9180bfe
commit 4082ff84e3

View File

@@ -144,7 +144,7 @@ void wxRibbonMSWArtProvider::SetColourScheme(
// 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