]> git.saurik.com Git - wxWidgets.git/commitdiff
store our styles in wxSpinCtrlGenericBase ctor (needed to make the changes of r59410...
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 7 Mar 2009 14:37:53 +0000 (14:37 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 7 Mar 2009 14:37:53 +0000 (14:37 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59411 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/spinctlg.cpp

index 8be2e5d720ad420d9002b7dc41b573017ab3d481..70a58db5352f69f40ebe57780818c12bbe1f96d8 100644 (file)
@@ -186,7 +186,8 @@ bool wxSpinCtrlGenericBase::Create(wxWindow *parent,
     // the text control borders (but we might want to use style border bits to
     // select the text control style)
     if ( !wxControl::Create(parent, id, wxDefaultPosition, wxDefaultSize,
-                            wxBORDER_NONE, wxDefaultValidator, name) )
+                            (style & ~wxBORDER_MASK) | wxBORDER_NONE,
+                            wxDefaultValidator, name) )
     {
         return false;
     }