From 6e2ce5b625898689e50775b278cfeec6b73adddb Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sun, 11 Oct 2009 11:39:09 +0000 Subject: Fixed bug mentioned on mailing list where Shift+Alt+Click no longer selects a rectangular region. --- src/Editor.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/Editor.cxx b/src/Editor.cxx index f4f78de86..0db5789a4 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -5678,10 +5678,12 @@ 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; sel.selType = alt ? Selection::selRectangle : Selection::selStream; selectionType = selChar; originalAnchorPos = sel.MainCaret(); - sel.Rectangular() = SelectionRange(newPos); + sel.Rectangular() = SelectionRange(newPos, anchorCurrent); SetRectangularRange(); } } -- cgit v1.2.3