summaryrefslogtreecommitdiff
path: root/indra/llui/lltextbase.cpp
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
commit5a6a792920bb0dee35bcd711bd786d907bda556a (patch)
tree3ef961086a94db1d95759d6835f16e0662a4856e /indra/llui/lltextbase.cpp
parent816cf7db82f2e633631c334f44547714de6cbebc (diff)
fix for sim console not staying scrolled to bottom
Diffstat (limited to 'indra/llui/lltextbase.cpp')
-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 17e41d9e24..3ba9bd4d1b 100644
--- a/indra/llui/lltextbase.cpp
+++ b/indra/llui/lltextbase.cpp
@@ -1569,7 +1569,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());
}