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