summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Fl_Text_Display.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Fl_Text_Display.cxx b/src/Fl_Text_Display.cxx
index cb63b8f66..aa754bd74 100644
--- a/src/Fl_Text_Display.cxx
+++ b/src/Fl_Text_Display.cxx
@@ -3011,8 +3011,8 @@ int Fl_Text_Display::wrap_uses_character(int lineEndPos) {
Return true if the selection "sel" is rectangular, and touches a
buffer position withing "rangeStart" to "rangeEnd"
*/
-int Fl_Text_Display::range_touches_selection(Fl_Text_Selection *sel,
- int rangeStart, int rangeEnd) {
+int Fl_Text_Display::range_touches_selection(const Fl_Text_Selection *sel,
+ int rangeStart, int rangeEnd) const {
return sel->selected() && sel->rectangular() && sel->end() >= rangeStart &&
sel->start() <= rangeEnd;
}