]> git.saurik.com Git - wxWidgets.git/commitdiff
fixing a scope error introduced in 1.41
authorStefan Csomor <csomor@advancedconcepts.ch>
Fri, 17 Mar 2006 17:12:40 +0000 (17:12 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Fri, 17 Mar 2006 17:12:40 +0000 (17:12 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38180 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/dnd.cpp

index 808dc49fa4296211ab8c87454ad356d114687b09..ba746ab3e628fc7ce8e4a876b19e58d13684c922 100644 (file)
@@ -428,11 +428,9 @@ wxDragResult wxDropSource::DoDragDrop(int flags)
 #if !TARGET_CARBON // TODO
     ev = (EventRecord*) wxTheApp->MacGetCurrentEvent();
 #else
-    {
-        EventRecord rec;
-        ev = &rec;
-        wxMacConvertEventToRecord( (EventRef) wxTheApp->MacGetCurrentEvent(), &rec );
-    }
+    EventRecord rec;
+    ev = &rec;
+    wxMacConvertEventToRecord( (EventRef) wxTheApp->MacGetCurrentEvent(), &rec );
 #endif
 
     const short dragRegionOuterBoundary = 10;