]> git.saurik.com Git - wxWidgets.git/commitdiff
the wx part knows better whether it has the focus (may be the embedded NSView, not...
authorStefan Csomor <csomor@advancedconcepts.ch>
Wed, 2 Mar 2011 21:16:30 +0000 (21:16 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Wed, 2 Mar 2011 21:16:30 +0000 (21:16 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67113 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/osx/window_osx.cpp

index a7f6a9316050df0af6f5f3f60f84eb555ed868f5..5e8dc2476379a14ef8896995fd1da4d3913c471b 100644 (file)
@@ -1482,7 +1482,7 @@ void wxWindowMac::MacPaintBorders( int WXUNUSED(leftOrigin) , int WXUNUSED(right
     if ( IsTopLevel() )
         return ;
 
-    bool hasFocus = m_peer->NeedsFocusRect() && m_peer->HasFocus() ;
+    bool hasFocus = m_peer->NeedsFocusRect() && HasFocus();
 
     // back to the surrounding frame rectangle
     int tx,ty,tw,th;