]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed error in prior checkin
authorDavid Surovell <davids@osafoundation.org>
Thu, 22 Dec 2005 01:14:06 +0000 (01:14 +0000)
committerDavid Surovell <davids@osafoundation.org>
Thu, 22 Dec 2005 01:14:06 +0000 (01:14 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36519 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/window.cpp

index 021b11593dda502184c54f0d97cccdc26c8bc78c..fc005441b867da74617c249a279154fb241b84a8 100644 (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