From a9dce11e159139df349bfbac9fa80293ec16ef91 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Thu, 15 Oct 2009 10:13:27 +0000 Subject: Fixed new problem where ALt+Drag was using the start of file as the anchor. --- src/Editor.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Editor.cxx b/src/Editor.cxx index 0db5789a4..82c5895eb 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -5678,8 +5678,10 @@ void Editor::ButtonDown(Point pt, unsigned int curTime, bool shift, bool ctrl, b SetSelection(newPos, newPos); } } - SelectionPosition anchorCurrent = sel.IsRectangular() ? - sel.Rectangular().anchor : sel.RangeMain().anchor; + SelectionPosition anchorCurrent = newPos; + if (shift) + anchorCurrent = sel.IsRectangular() ? + sel.Rectangular().anchor : sel.RangeMain().anchor; sel.selType = alt ? Selection::selRectangle : Selection::selStream; selectionType = selChar; originalAnchorPos = sel.MainCaret(); -- cgit v1.2.3