X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9b26a198ce442caff6a46196b97d25e60e1193f0..7bade612f0f138a06f6a53d84220bb9d8ece7662:/src/common/stockitem.cpp 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) )