diff options
author | AndreyL ProductEngine <alihatskiy@productengine.com> | 2019-04-17 16:47:32 +0300 |
---|---|---|
committer | AndreyL ProductEngine <alihatskiy@productengine.com> | 2019-04-17 16:47:32 +0300 |
commit | b5f842183958f5de8a09156510ede53ac34a5310 (patch) | |
tree | a46044c60981c50c5ab473267c641f6c46b6aa2f /indra/llui/lllineeditor.cpp | |
parent | 62bec6aa36abdbfea6c804c8c5f3381ae76b920b (diff) | |
parent | 81dbd3663bdaff741e68de0ec4d4d35bedf6649d (diff) |
Merged in lindenlab/viewer-release
Diffstat (limited to 'indra/llui/lllineeditor.cpp')
-rw-r--r-- | indra/llui/lllineeditor.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/indra/llui/lllineeditor.cpp b/indra/llui/lllineeditor.cpp index cfab6b7fc8..ff8bf30319 100644 --- a/indra/llui/lllineeditor.cpp +++ b/indra/llui/lllineeditor.cpp @@ -499,6 +499,13 @@ void LLLineEditor::setCursorToEnd() deselect(); } +void LLLineEditor::resetScrollPosition() +{ + mScrollHPos = 0; + // make sure cursor says in visible range + setCursor(getCursor()); +} + BOOL LLLineEditor::canDeselect() const { return hasSelection(); |