fixed compile error (jump to label bypasses initialization, or

something like that...)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42457 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2006-10-26 16:19:36 +00:00
parent 49db0f3f8d
commit b80e3a2a4f

View File

@@ -154,10 +154,13 @@ static pascal OSStatus wxMacListCtrlEventHandler( EventHandlerCallRef handler ,
break;
}
case kEventControlDraw:
CGContextRef context = cEvent.GetParameter<CGContextRef>(kEventParamCGContextRef, typeCGContextRef) ;
window->MacSetDrawingContext(context);
result = CallNextEventHandler(handler, event);
window->MacSetDrawingContext(NULL);
{
CGContextRef context = cEvent.GetParameter<CGContextRef>(kEventParamCGContextRef, typeCGContextRef) ;
window->MacSetDrawingContext(context);
result = CallNextEventHandler(handler, event);
window->MacSetDrawingContext(NULL);
break;
}
default :
break ;
}