diff options
author | Jacek Antonelli | 2009-02-16 00:40:12 -0600 |
---|---|---|
committer | Jacek Antonelli | 2009-02-16 00:40:15 -0600 |
commit | 8681bd51bff45cd57aee4d467c417de5497b7ed3 (patch) | |
tree | b4a12c3dd0600498e055e42120e10d8091397612 /linden/indra/llui/llkeywords.cpp | |
parent | Don't assume that start and end delimiters are same length. (diff) | |
download | meta-impy-8681bd51bff45cd57aee4d467c417de5497b7ed3.zip meta-impy-8681bd51bff45cd57aee4d467c417de5497b7ed3.tar.gz meta-impy-8681bd51bff45cd57aee4d467c417de5497b7ed3.tar.bz2 meta-impy-8681bd51bff45cd57aee4d467c417de5497b7ed3.tar.xz |
Fixed LSL comment coloring bleeding to next line. [#96]
Diffstat (limited to 'linden/indra/llui/llkeywords.cpp')
-rw-r--r-- | linden/indra/llui/llkeywords.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/linden/indra/llui/llkeywords.cpp b/linden/indra/llui/llkeywords.cpp index 653dc47..862e77b 100644 --- a/linden/indra/llui/llkeywords.cpp +++ b/linden/indra/llui/llkeywords.cpp | |||
@@ -438,7 +438,7 @@ void LLKeywords::findSegments(std::vector<LLTextSegment *>* seg_list, const LLWS | |||
438 | 438 | ||
439 | if( *cur ) | 439 | if( *cur ) |
440 | { | 440 | { |
441 | cur += cur_delimiter->getLength(); | 441 | cur += cur_delimiter->getLength2(); |
442 | if (cur_delimiter->getType() == LLKeywordToken::TWO_SIDED_DELIMITER) | 442 | if (cur_delimiter->getType() == LLKeywordToken::TWO_SIDED_DELIMITER) |
443 | { | 443 | { |
444 | seg_end = seg_start + between_delimiters | 444 | seg_end = seg_start + between_delimiters |
@@ -452,7 +452,7 @@ void LLKeywords::findSegments(std::vector<LLTextSegment *>* seg_list, const LLWS | |||
452 | between_delimiters++; | 452 | between_delimiters++; |
453 | cur++; | 453 | cur++; |
454 | } | 454 | } |
455 | seg_end = seg_start + between_delimiters + 2 + cur_delimiter->getLength(); | 455 | seg_end = seg_start + between_delimiters + cur_delimiter->getLength(); |
456 | } | 456 | } |
457 | else | 457 | else |
458 | { | 458 | { |