diff options
| author | nyamatongwe <devnull@localhost> | 2009-07-04 00:22:39 +0000 |
|---|---|---|
| committer | nyamatongwe <devnull@localhost> | 2009-07-04 00:22:39 +0000 |
| commit | b99555f180ad393da6d678374c53d7591a034762 (patch) | |
| tree | a4e17f640ceaad03fcec2e9fed4647605d6f547a | |
| parent | 1d772be5dea42ff8cd8632806589bbc92effec35 (diff) | |
| download | scintilla-mirror-b99555f180ad393da6d678374c53d7591a034762.tar.gz | |
Made drag and drop work - return value from PositionInSelection was changed
for multiple selection.
| -rw-r--r-- | gtk/ScintillaGTK.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/ScintillaGTK.cxx b/gtk/ScintillaGTK.cxx index 11b466fef..5677da922 100644 --- a/gtk/ScintillaGTK.cxx +++ b/gtk/ScintillaGTK.cxx @@ -2498,7 +2498,7 @@ gboolean ScintillaGTK::DragMotionThis(GdkDragContext *context, SetDragPosition(PositionFromLocation(npt)); GdkDragAction preferredAction = context->suggested_action; int pos = PositionFromLocation(npt); - if ((inDragDrop == ddDragging) && (0 == PositionInSelection(pos))) { + if ((inDragDrop == ddDragging) && (PositionInSelection(pos))) { // Avoid dragging selection onto itself as that produces a move // with no real effect but which creates undo actions. preferredAction = static_cast<GdkDragAction>(0); |
