X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/041ae20237321e764412e289c5b677479d923ac4..168e7d95ea228dcda8b676506fc1c4932d0f12e0:/src/univ/button.cpp diff --git a/src/univ/button.cpp b/src/univ/button.cpp index b70394dc5c..a812e9e25e 100644 --- a/src/univ/button.cpp +++ b/src/univ/button.cpp @@ -81,7 +81,7 @@ bool wxButton::Create(wxWindow *parent, if (label.empty() && wxIsStockID(id)) label = wxGetStockLabel(id); - long ctrl_style = style & !wxBU_ALIGN_MASK; + long ctrl_style = style & ~wxBU_ALIGN_MASK; wxASSERT_MSG( (ctrl_style & wxALIGN_MASK) == 0, _T("Some style conflicts with align flags") );