]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/button.cpp
Add wxBitmap::GetNSImage() which creates an autoreleased NSImage either
[wxWidgets.git] / src / os2 / button.cpp
index 397ee99edaaa70bedd6871c5e89739d536aa8387..c47b6dce3238619770aeb192b2c70dc780b6b7df 100644 (file)
@@ -311,7 +311,7 @@ void wxButton::SetDefaultStyle(
         if ((lStyle & BS_USERBUTTON) != BS_USERBUTTON)
         {
             if (bOn)
-                lStyle | BS_DEFAULT;
+                lStyle |= BS_DEFAULT;
             else
                 lStyle &= ~BS_DEFAULT;
             ::WinSetWindowULong(GetHwndOf(pBtn), QWL_STYLE, lStyle);