aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2009-07-04 00:22:39 +0000
committernyamatongwe <devnull@localhost>2009-07-04 00:22:39 +0000
commitb99555f180ad393da6d678374c53d7591a034762 (patch)
treea4e17f640ceaad03fcec2e9fed4647605d6f547a
parent1d772be5dea42ff8cd8632806589bbc92effec35 (diff)
downloadscintilla-mirror-b99555f180ad393da6d678374c53d7591a034762.tar.gz
Made drag and drop work - return value from PositionInSelection was changed
for multiple selection.
-rw-r--r--gtk/ScintillaGTK.cxx2
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);