]> git.saurik.com Git - wxWidgets.git/blobdiff - src/univ/button.cpp
adding Robert Lang's native CG-Bezier patch
[wxWidgets.git] / src / univ / button.cpp
index b70394dc5c6ea890b5d34c14a82d5f9892987ddc..a812e9e25e3fd186cffbe9959a1698ce9a329294 100644 (file)
@@ -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") );