diff options
| author | nyamatongwe <nyamatongwe@gmail.com> | 2013-10-05 09:07:21 +1000 | 
|---|---|---|
| committer | nyamatongwe <nyamatongwe@gmail.com> | 2013-10-05 09:07:21 +1000 | 
| commit | c96d2fd09ba30c5b769785ecfc13a48cfae4af5b (patch) | |
| tree | 1d9eee4b3025a4b0578cca7b4de1996700210454 | |
| parent | c438e23d379029108dd0474e12156f7059cb2a4d (diff) | |
| download | scintilla-mirror-c96d2fd09ba30c5b769785ecfc13a48cfae4af5b.tar.gz | |
Bug [#1534]. Drag and drop fails when destination view is empty.
| -rw-r--r-- | cocoa/ScintillaCocoa.mm | 3 | 
1 files changed, 2 insertions, 1 deletions
| 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 <NSDraggingInfo> info)  { -  inDragDrop = ddDragging;    return DraggingUpdated(info);  } | 
