X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8907154c1a8a6882c6797d1f16393ddfb23e7f3a..686ecd1557b70580e32bff82600334ae26e81c4a:/src/univ/button.cpp diff --git a/src/univ/button.cpp b/src/univ/button.cpp index f41f45b6e6..995a3becaa 100644 --- a/src/univ/button.cpp +++ b/src/univ/button.cpp @@ -78,9 +78,7 @@ bool wxButton::Create(wxWindow *parent, label = wxGetStockLabel(id); long ctrl_style = style & ~wxBU_ALIGN_MASK; - - wxASSERT_MSG( (ctrl_style & wxALIGN_MASK) == 0, - _T("Some style conflicts with align flags") ); + ctrl_style = ctrl_style & ~wxALIGN_MASK; if((style & wxBU_RIGHT) == wxBU_RIGHT) ctrl_style |= wxALIGN_RIGHT;