From 45a9984b8ed3d8055690472dfe9e8b0e90fe73fc Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Fri, 31 Dec 2010 10:49:58 +1100 Subject: Minimize redraw when clicking mouse to make new empty selection. --- src/Editor.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/Editor.cxx b/src/Editor.cxx index 312c39b37..e9a30ee72 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -5972,7 +5972,8 @@ void Editor::ButtonDown(Point pt, unsigned int curTime, bool shift, bool ctrl, b InvalidateSelection(SelectionRange(newPos), true); if (sel.Count() > 1) Redraw(); - sel.Clear(); + if ((sel.Count() > 1) || (sel.selType != Selection::selStream)) + sel.Clear(); sel.selType = alt ? Selection::selRectangle : Selection::selStream; SetSelection(newPos, newPos); } -- cgit v1.2.3