From 1e03c3b80c7543fa94e9d9da55a618e848089feb Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sat, 11 Dec 2010 11:05:12 +1100 Subject: Make multiple selection multi-paste work when multi-type is off. Bug #3126221. --- src/Editor.cxx | 4 ++-- src/Editor.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/Editor.cxx b/src/Editor.cxx index 6cf8d7490..5ed69b36b 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -3912,8 +3912,8 @@ void Editor::InsertPaste(SelectionPosition selStart, const char *text, int len) } } -void Editor::ClearSelection() { - if (!sel.IsRectangular()) +void Editor::ClearSelection(bool retainMultipleSelections) { + if (!sel.IsRectangular() && !retainMultipleSelections) FilterSelections(); UndoGroup ug(pdoc); for (size_t r=0; r