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