summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
Diffstat (limited to 'indra')
-rw-r--r--indra/llui/lltexteditor.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/indra/llui/lltexteditor.cpp b/indra/llui/lltexteditor.cpp
index 7d13220c94..a97899f270 100644
--- a/indra/llui/lltexteditor.cpp
+++ b/indra/llui/lltexteditor.cpp
@@ -94,6 +94,12 @@ struct LLTextEditor::compare_bottom
{
return a.mBottom > b; // bottom of a is higher than bottom of b
}
+
+ bool operator()(const LLTextEditor::line_info& a, const LLTextEditor::line_info& b) const
+ {
+ return a.mBottom > b.mBottom; // bottom of a is higher than bottom of b
+ }
+
};
// helper functors
@@ -108,6 +114,11 @@ struct LLTextEditor::compare_top
{
return a.mTop > b; // top of a is higher than top of b
}
+
+ bool operator()(const LLTextEditor::line_info& a, const LLTextEditor::line_info& b) const
+ {
+ return a.mTop > b.mTop; // top of a is higher than top of b
+ }
};
struct LLTextEditor::line_end_compare
@@ -122,6 +133,11 @@ struct LLTextEditor::line_end_compare
return (info.mDocIndexEnd < pos);
}
+ bool operator()(const LLTextEditor::line_info& a, const LLTextEditor::line_info& b) const
+ {
+ return (a.mDocIndexEnd < b.mDocIndexEnd);
+ }
+
};
//