From: Vadim Zeitlin Date: Sun, 26 Jul 2009 00:24:20 +0000 (+0000) Subject: Correct the check for wxSTOCK_FOR_BUTTON. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/e49776ccfbdd36a2930266dc3fcd48bab8e5460d Correct the check for wxSTOCK_FOR_BUTTON. We need to check for equality here as wxSTOCK_FOR_BUTTON includes wxSTOCK_WITH_MNEMONIC but using the latter doesn't imply the former. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61536 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/stockitem.cpp b/src/common/stockitem.cpp index 28d720a047..9a02d8bf58 100644 --- a/src/common/stockitem.cpp +++ b/src/common/stockitem.cpp @@ -207,7 +207,7 @@ wxString wxGetStockLabel(wxWindowID id, long flags) // we assume that buttons use the same labels as menu items but unlike them // they should never use ellipsis - if ( flags & wxSTOCK_FOR_BUTTON ) + if ( (flags & wxSTOCK_FOR_BUTTON) == wxSTOCK_FOR_BUTTON ) { wxString baseLabel; if ( stockLabel.EndsWith("...", &baseLabel) )