]> git.saurik.com Git - wxWidgets.git/commitdiff
Fix harmless MSVC warning about int to bool conversion in Scintilla.
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 7 Apr 2010 12:55:21 +0000 (12:55 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 7 Apr 2010 12:55:21 +0000 (12:55 +0000)
The warning is harmless but prevents buildbot from reporting any new warnings
during the library compilation step so suppress it.

Notice that it might be better if ViewStyle::extraFontFlag was bool and not
int to begin with.

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

src/stc/ScintillaWX.cpp

index 0850bcbcedc11fa8be37bb795c55bce0b788f6fd..3e384177bbc1eba71ec1e2bc905e95cb3686b617 100644 (file)
@@ -1111,7 +1111,7 @@ void ScintillaWX::SetUseAntiAliasing(bool useAA) {
 }
 
 bool ScintillaWX::GetUseAntiAliasing() {
-    return vs.extraFontFlag;
+    return vs.extraFontFlag != 0;
 }
 
 //----------------------------------------------------------------------