fixed error in prior checkin

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36519 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
David Surovell
2005-12-22 01:14:06 +00:00
parent 53599fbbd8
commit c394a432fa

View File

@@ -2671,9 +2671,8 @@ void wxWindowMac::OnSetFocus( wxFocusEvent& event )
rect.bottom += pt.y ;
}
DrawThemeFocusRect( &rect , bIsFocusEvent ) ;
bool bIsFocusEvent = (event.GetEventType() == wxEVT_SET_FOCUS);
DrawThemeFocusRect( &rect , bIsFocusEvent ) ;
if ( !bIsFocusEvent )
{
// as this erases part of the frame we have to redraw borders