]> git.saurik.com Git - wxWidgets.git/commitdiff
Warning fix for the warning fix.
authorJamie Gadd <jrgadd2@cs.latrobe.edu.au>
Tue, 25 Jul 2006 09:24:03 +0000 (09:24 +0000)
committerJamie Gadd <jrgadd2@cs.latrobe.edu.au>
Tue, 25 Jul 2006 09:24:03 +0000 (09:24 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40315 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/odcombo.cpp

index 4d39e83afa1c8b58cc52dbcd951ec0876dc78d05..b48d79347d88a476734f577c3f2366f0e62c5cad 100644 (file)
@@ -1046,7 +1046,7 @@ void wxOwnerDrawnComboBox::OnDrawBackground(wxDC& dc, const wxRect& rect, int it
     {
         int focusFlag = wxCONTROL_SELECTED;
 
-        if ( flags & wxODCB_PAINTING_CONTROL != wxODCB_PAINTING_CONTROL )
+        if ( (flags & wxODCB_PAINTING_CONTROL) != wxODCB_PAINTING_CONTROL )
             focusFlag |= wxCONTROL_ISSUBMENU;
 
         DrawFocusBackground(dc, rect, focusFlag );