diff options
| author | Manolo Gouy <Manolo> | 2013-12-13 16:28:38 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2013-12-13 16:28:38 +0000 |
| commit | 34c69d3922fec8be57b2cd5aaededfc2a0828f23 (patch) | |
| tree | c41b2deba23256100c0da2ffb5fda40d69d8233c /src/Fl_Text_Editor.cxx | |
| parent | f7e88141c3db591149d4d569e6852843b61d9c92 (diff) | |
Fix for STR#3016: Fl_Input and Fl_Text_Editor have now the standard behavior when doing
drag-n-drop of text: if the dragged text is dropped in the widget it comes from, it's cut and pasted.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10031 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Text_Editor.cxx')
| -rw-r--r-- | src/Fl_Text_Editor.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Fl_Text_Editor.cxx b/src/Fl_Text_Editor.cxx index 03e4b22bd..2854bfa88 100644 --- a/src/Fl_Text_Editor.cxx +++ b/src/Fl_Text_Editor.cxx @@ -646,7 +646,7 @@ int Fl_Text_Editor::handle(int event) { insert_position(dndCursorPos); return 1; case FL_DND_RELEASE: // keep insertion cursor and wait for the FL_PASTE event - buffer()->unselect(); // FL_PASTE must not destroy current selection! + if (!dragging) buffer()->unselect(); // FL_PASTE must not destroy current selection if drag comes from outside return 1; } |
