]> git.saurik.com Git - wxWidgets.git/commitdiff
Fixed warning when compiling richttextctrl.cpp in VS2010 (fixes #13606)
authorJulian Smart <julian@anthemion.co.uk>
Sun, 30 Oct 2011 13:39:11 +0000 (13:39 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Sun, 30 Oct 2011 13:39:11 +0000 (13:39 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69585 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/richtext/richtextctrl.cpp

index 71a264129b3fdff3773882d8190a4c9b7e90c2f5..466dc88569fcbadfcfef0d6dd6c5591fe8f698c6 100644 (file)
@@ -3621,7 +3621,7 @@ bool wxRichTextCtrl::DoesSelectionHaveTextEffectFlag(int flag)
         {
             if (IsDefaultStyleShowing())
                 wxRichTextApplyStyle(attr, GetDefaultStyleEx());
-            return (attr.GetTextEffectFlags() & flag);
+            return (attr.GetTextEffectFlags() & flag) != 0;
         }
     }
     return false;