]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed compile error (jump to label bypasses initialization, or
authorRobin Dunn <robin@alldunn.com>
Thu, 26 Oct 2006 16:19:36 +0000 (16:19 +0000)
committerRobin Dunn <robin@alldunn.com>
Thu, 26 Oct 2006 16:19:36 +0000 (16:19 +0000)
something like that...)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42457 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/listctrl_mac.cpp

index 9eab50bd693378ca7cbe3fe5788953db1e2181aa..3e68168a22ae357067c6d4b65abd796824fbc0df 100644 (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 ;
     }