From: David Surovell Date: Thu, 22 Dec 2005 01:14:06 +0000 (+0000) Subject: fixed error in prior checkin X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/c394a432fa5b21485080da8b2d9fef23740188a2?ds=sidebyside fixed error in prior checkin git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36519 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/mac/carbon/window.cpp b/src/mac/carbon/window.cpp index 021b11593d..fc005441b8 100644 --- a/src/mac/carbon/window.cpp +++ b/src/mac/carbon/window.cpp @@ -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