]> git.saurik.com Git - wxWidgets.git/commitdiff
fix wxSTOCK_WITH_MNEMONIC handling (was reversed after recent changes)
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 7 Sep 2006 16:53:22 +0000 (16:53 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 7 Sep 2006 16:53:22 +0000 (16:53 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41050 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/stockitem.cpp

index 6bf9ac60e32cb862419f147ef4cc988f48bcc8ef..a559da2155b917966c6af17d94dc79cf26987b37 100644 (file)
@@ -169,7 +169,7 @@ wxString wxGetStockLabel(wxWindowID id, long flags)
 
     #undef STOCKITEM
 
-    if(flags & wxSTOCK_WITH_MNEMONIC)
+    if ( !(flags & wxSTOCK_WITH_MNEMONIC) )
     {
         stockLabel = wxStripMenuCodes( stockLabel );
     }