From 9c54599cc939df92c94843ca39c09d1c2ac0648b Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sat, 4 Jul 2009 00:22:39 +0000 Subject: Made drag and drop work - return value from PositionInSelection was changed for multiple selection. --- gtk/ScintillaGTK.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(0); -- cgit v1.2.3