]> git.saurik.com Git - wxWidgets.git/commitdiff
HasFlag is not set at this point
authorStefan Csomor <csomor@advancedconcepts.ch>
Wed, 28 Jul 2004 13:51:03 +0000 (13:51 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Wed, 28 Jul 2004 13:51:03 +0000 (13:51 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28529 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/textctrl.cpp

index d62754276b6e83f7708b06d9db9eb104b2dbf787..8f28ec3dcc189088fb41081716f3055bf9553fe9 100644 (file)
@@ -354,8 +354,8 @@ bool wxTextCtrl::Create(wxWindow *parent, wxWindowID id,
     m_macIsUserPane = FALSE ;
     m_editable = true ;
 
-    if ( !HasFlag(wxNO_BORDER) )
-        style |= wxSUNKEN_BORDER ;
+    if ( ! ( style & wxNO_BORDER) )
+        style = ( style & ~wxBORDER_MASK) | wxSUNKEN_BORDER ;
     
     if ( !wxTextCtrlBase::Create(parent, id, pos, size, style & ~(wxHSCROLL|wxVSCROLL), validator, name) )
         return FALSE;