summaryrefslogtreecommitdiff
path: root/indra/llui/lltextbase.cpp
diff options
context:
space:
mode:
authorrichard <none@none>2009-11-25 19:14:55 -0800
committerrichard <none@none>2009-11-25 19:14:55 -0800
commitedcd835febac3758d1522b4ec51bba60eeafcd63 (patch)
tree85c9875e5bdcd7ec0c50f76ae800f521b5585121 /indra/llui/lltextbase.cpp
parent617ca79ed073604883f3e0e21b2e81a3786bbe6f (diff)
fixed line numbering in script editors
Diffstat (limited to 'indra/llui/lltextbase.cpp')
-rw-r--r--indra/llui/lltextbase.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/indra/llui/lltextbase.cpp b/indra/llui/lltextbase.cpp
index 4a7d17cc62..e515170b0c 100644
--- a/indra/llui/lltextbase.cpp
+++ b/indra/llui/lltextbase.cpp
@@ -1180,6 +1180,10 @@ void LLTextBase::reflow(S32 start_index)
++seg_iter;
seg_offset = 0;
}
+ if (force_newline)
+ {
+ line_count++;
+ }
}
// calculate visible region for diplaying text