diff options
author | nyamatongwe <unknown> | 2009-10-11 11:39:09 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2009-10-11 11:39:09 +0000 |
commit | 6e2ce5b625898689e50775b278cfeec6b73adddb (patch) | |
tree | 34d3e494e80cd681b70463905bc22e9b7640aef1 /src | |
parent | 6c39d53173ef8ae41a735e3f92c93b9322434b4f (diff) | |
download | scintilla-mirror-6e2ce5b625898689e50775b278cfeec6b73adddb.tar.gz |
Fixed bug mentioned on mailing list where Shift+Alt+Click no longer selects
a rectangular region.
Diffstat (limited to 'src')
-rw-r--r-- | src/Editor.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
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(); } } |