We'll get an unhandled exception if the view is hidden, fortunately, lockFocusIfCanDraw does the right thing here, or at least the best we can hope for.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58817 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Kevin Ollivier 2009-02-09 18:48:20 +00:00
parent 15fc716c57
commit ceed527cc9

View File

@ -55,7 +55,7 @@ CGContextRef wxOSXGetContextFromCurrentNSContext()
void wxOSXLockFocus( WXWidget view)
{
[view lockFocus];
[view lockFocusIfCanDraw];
}
void wxOSXUnlockFocus( WXWidget view)