X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/041ae20237321e764412e289c5b677479d923ac4..2c94045365a17840b71aaf3ce2f08512e9474eeb:/src/univ/button.cpp diff --git a/src/univ/button.cpp b/src/univ/button.cpp index b70394dc5c..995a3becaa 100644 --- a/src/univ/button.cpp +++ b/src/univ/button.cpp @@ -17,10 +17,6 @@ // headers // ---------------------------------------------------------------------------- -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) - #pragma implementation "univbutton.h" -#endif - #include "wx/wxprec.h" #ifdef __BORLANDC__ @@ -81,10 +77,8 @@ bool wxButton::Create(wxWindow *parent, if (label.empty() && wxIsStockID(id)) label = wxGetStockLabel(id); - long ctrl_style = style & !wxBU_ALIGN_MASK; - - wxASSERT_MSG( (ctrl_style & wxALIGN_MASK) == 0, - _T("Some style conflicts with align flags") ); + long ctrl_style = style & ~wxBU_ALIGN_MASK; + ctrl_style = ctrl_style & ~wxALIGN_MASK; if((style & wxBU_RIGHT) == wxBU_RIGHT) ctrl_style |= wxALIGN_RIGHT;