]> git.saurik.com Git - wxWidgets.git/commitdiff
We'll get an unhandled exception if the view is hidden, fortunately, lockFocusIfCanDr...
authorKevin Ollivier <kevino@theolliviers.com>
Mon, 9 Feb 2009 18:48:20 +0000 (18:48 +0000)
committerKevin Ollivier <kevino@theolliviers.com>
Mon, 9 Feb 2009 18:48:20 +0000 (18:48 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58817 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/osx/carbon/utilscocoa.mm

index 3ffcf9040729a2d22fb2b51fbd53138a619b78df..d7fc6b8f39b698050dd3ee6562b49c9fe138eced 100644 (file)
@@ -55,7 +55,7 @@ CGContextRef wxOSXGetContextFromCurrentNSContext()
 
 void wxOSXLockFocus( WXWidget view) 
 {
-    [view lockFocus];
+    [view lockFocusIfCanDraw];
 }
 
 void wxOSXUnlockFocus( WXWidget view)