]> git.saurik.com Git - wxWidgets.git/commitdiff
coordinate conversion was the wrong way round
authorStefan Csomor <csomor@advancedconcepts.ch>
Mon, 5 Mar 2012 06:10:19 +0000 (06:10 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Mon, 5 Mar 2012 06:10:19 +0000 (06:10 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70810 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/osx/cocoa/dnd.mm

index 2c26500ebef9b3f3877a8301b5ac6dc09df9b624..c12e16f5b957c3b81fc2a0fc6002f7dba1e68fce 100644 (file)
@@ -220,7 +220,7 @@ wxDragResult wxDropSource::DoDragDrop(int WXUNUSED(flags))
         wxASSERT_MSG(theEvent, "DoDragDrop must be called in response to a mouse down or drag event.");
 
         NSPoint down = [theEvent locationInWindow];
-        NSPoint p = [view convertPoint:down toView:nil];
+        NSPoint p = [view convertPoint:down fromView:nil];
                 
         gCurrentSource = this;