From db28a493dd741599370357dc56f88037a2767ec9 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Fri, 17 Mar 2006 17:12:40 +0000 Subject: [PATCH] fixing a scope error introduced in 1.41 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38180 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/mac/carbon/dnd.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/mac/carbon/dnd.cpp b/src/mac/carbon/dnd.cpp index 808dc49fa4..ba746ab3e6 100644 --- a/src/mac/carbon/dnd.cpp +++ b/src/mac/carbon/dnd.cpp @@ -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; -- 2.45.2