]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/window_osx.cpp
under cocoa a too-small static box leads to erroneous layout information, therefore...
[wxWidgets.git] / 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;