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:
@@ -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 ;
|
||||
}
|
||||
|
Reference in New Issue
Block a user