diff --git a/src/osx/window_osx.cpp b/src/osx/window_osx.cpp index a7f6a93160..5e8dc24763 100644 --- a/src/osx/window_osx.cpp +++ b/src/osx/window_osx.cpp @@ -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;