summaryrefslogtreecommitdiff
path: root/indra/llui
diff options
context:
space:
mode:
authorRichard Linden <none@none>2010-08-24 09:41:35 -0700
committerRichard Linden <none@none>2010-08-24 09:41:35 -0700
commit9db7d6cb3d216fcdc1b6528039dc6538b045819e (patch)
tree00b5949a729b5b61e1caafa1f2fc4f2d217abe69 /indra/llui
parent9634c6a8958da12b59d63048461ce07f87d6f859 (diff)
fix for sim console not staying scrolled to bottom
Diffstat (limited to 'indra/llui')
-rw-r--r--indra/llui/lltextbase.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/indra/llui/lltextbase.cpp b/indra/llui/lltextbase.cpp
index 3792f18c97..0390ff5fa4 100644
--- a/indra/llui/lltextbase.cpp
+++ b/indra/llui/lltextbase.cpp
@@ -1597,7 +1597,10 @@ void LLTextBase::setText(const LLStringExplicit &utf8str, const LLStyle::Params&
// appendText modifies mCursorPos...
appendText(text, false, input_params);
// ...so move cursor to top after appending text
- startOfDoc();
+ if (!mTrackEnd)
+ {
+ startOfDoc();
+ }
onValueChange(0, getLength());
}