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
This commit is contained in:
Vadim Zeitlin 2009-07-26 00:24:20 +00:00
parent a16a233822
commit e49776ccfb

View File

@ -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) )