diff --git a/src/osx/carbon/dnd.cpp b/src/osx/carbon/dnd.cpp index 1c06491e9a..8fed3c2ee8 100644 --- a/src/osx/carbon/dnd.cpp +++ b/src/osx/carbon/dnd.cpp @@ -390,14 +390,14 @@ pascal OSErr wxMacWindowDragTrackingHandler( if (toplevel == NULL) break; - GetDragMouse( theDrag, &mouse, 0L ); - int x = mouse.h ; - int y = mouse.v ; - toplevel->GetNonOwnedPeer()->ScreenToWindow( &x, &y ); - localMouse.h = x; - localMouse.v = y; - { + GetDragMouse( theDrag, &mouse, 0L ); + int x = mouse.h ; + int y = mouse.v ; + toplevel->GetNonOwnedPeer()->ScreenToWindow( &x, &y ); + localMouse.h = x; + localMouse.v = y; + wxWindow *win = NULL; ControlPartCode controlPart; ControlRef control = FindControlUnderMouse( localMouse, theWindow, &controlPart );