summaryrefslogtreecommitdiffstats
path: root/scintilla/src/Selection.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'scintilla/src/Selection.cxx')
-rw-r--r--scintilla/src/Selection.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/scintilla/src/Selection.cxx b/scintilla/src/Selection.cxx
index 6465aae..656d754 100644
--- a/scintilla/src/Selection.cxx
+++ b/scintilla/src/Selection.cxx
@@ -226,10 +226,18 @@ SelectionRange &Selection::Range(size_t r) {
return ranges[r];
}
+const SelectionRange &Selection::Range(size_t r) const {
+ return ranges[r];
+}
+
SelectionRange &Selection::RangeMain() {
return ranges[mainRange];
}
+const SelectionRange &Selection::RangeMain() const {
+ return ranges[mainRange];
+}
+
SelectionPosition Selection::Start() const {
if (IsRectangular()) {
return rangeRectangular.Start();