From 1aa01f95869bae53f52a501b7970977c6963f8cc Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sun, 11 Oct 2009 05:45:27 +0000 Subject: Fix bug #2871358 where left or right key with rectangular selection moved to a left or right of main selection rather than before or after rectangular selection. --- src/Selection.cxx | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/Selection.cxx') diff --git a/src/Selection.cxx b/src/Selection.cxx index 47d078675..566cb1074 100644 --- a/src/Selection.cxx +++ b/src/Selection.cxx @@ -179,6 +179,19 @@ SelectionRange &Selection::Rectangular() { return rangeRectangular; } +SelectionSegment Selection::Limits() const { + if (ranges.empty()) { + return SelectionSegment(); + } else { + SelectionSegment sr(ranges[0].anchor, ranges[0].caret); + for (size_t i=1; i