From c96d2fd09ba30c5b769785ecfc13a48cfae4af5b Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sat, 5 Oct 2013 09:07:21 +1000 Subject: Bug [#1534]. Drag and drop fails when destination view is empty. --- cocoa/ScintillaCocoa.mm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cocoa') diff --git a/cocoa/ScintillaCocoa.mm b/cocoa/ScintillaCocoa.mm index 4fb927188..ecd9cc048 100644 --- a/cocoa/ScintillaCocoa.mm +++ b/cocoa/ScintillaCocoa.mm @@ -1140,6 +1140,8 @@ void ScintillaCocoa::StartDrag() if (sel.Empty()) return; + inDragDrop = ddDragging; + // Put the data to be dragged on the drag pasteboard. SelectionText selectedText; NSPasteboard* pasteboard = [NSPasteboard pasteboardWithName: NSDragPboard]; @@ -1301,7 +1303,6 @@ void ScintillaCocoa::StartDrag() */ NSDragOperation ScintillaCocoa::DraggingEntered(id info) { - inDragDrop = ddDragging; return DraggingUpdated(info); } -- cgit v1.2.3