diff options
author | Jacek Antonelli | 2008-12-01 17:41:02 -0600 |
---|---|---|
committer | Jacek Antonelli | 2008-12-01 17:41:04 -0600 |
commit | a2a8404bef1224ec84a70fac0d97232091c064d0 (patch) | |
tree | bd13d7d81131a8a109e16c1ca9f5d36263131351 | |
parent | Second Life viewer sources 1.22.0-RC (diff) | |
download | meta-impy-a2a8404bef1224ec84a70fac0d97232091c064d0.zip meta-impy-a2a8404bef1224ec84a70fac0d97232091c064d0.tar.gz meta-impy-a2a8404bef1224ec84a70fac0d97232091c064d0.tar.bz2 meta-impy-a2a8404bef1224ec84a70fac0d97232091c064d0.tar.xz |
Second Life viewer sources 1.22.1-RC
-rw-r--r-- | linden/indra/llcommon/llversionviewer.h | 2 | ||||
-rw-r--r-- | linden/indra/llui/lltexteditor.cpp | 10 |
2 files changed, 5 insertions, 7 deletions
diff --git a/linden/indra/llcommon/llversionviewer.h b/linden/indra/llcommon/llversionviewer.h index 6e7d6ce..6ff2604 100644 --- a/linden/indra/llcommon/llversionviewer.h +++ b/linden/indra/llcommon/llversionviewer.h | |||
@@ -34,7 +34,7 @@ | |||
34 | 34 | ||
35 | const S32 LL_VERSION_MAJOR = 1; | 35 | const S32 LL_VERSION_MAJOR = 1; |
36 | const S32 LL_VERSION_MINOR = 22; | 36 | const S32 LL_VERSION_MINOR = 22; |
37 | const S32 LL_VERSION_PATCH = 0; | 37 | const S32 LL_VERSION_PATCH = 1; |
38 | const S32 LL_VERSION_BUILD = 0; | 38 | const S32 LL_VERSION_BUILD = 0; |
39 | 39 | ||
40 | const char * const LL_CHANNEL = "Second Life Release"; | 40 | const char * const LL_CHANNEL = "Second Life Release"; |
diff --git a/linden/indra/llui/lltexteditor.cpp b/linden/indra/llui/lltexteditor.cpp index 281dbe4..4b0acf8 100644 --- a/linden/indra/llui/lltexteditor.cpp +++ b/linden/indra/llui/lltexteditor.cpp | |||
@@ -4255,11 +4255,9 @@ S32 LLTextEditor::findHTMLToken(const std::string &line, S32 pos, BOOL reverse) | |||
4255 | std::string openers=" \t\n('\"[{<>"; | 4255 | std::string openers=" \t\n('\"[{<>"; |
4256 | std::string closers=" \t\n)'\"]}><;"; | 4256 | std::string closers=" \t\n)'\"]}><;"; |
4257 | 4257 | ||
4258 | S32 index = 0; | ||
4259 | |||
4260 | if (reverse) | 4258 | if (reverse) |
4261 | { | 4259 | { |
4262 | for (index=pos; index >= 0; index--) | 4260 | for (int index=pos; index >= 0; index--) |
4263 | { | 4261 | { |
4264 | char c = line[index]; | 4262 | char c = line[index]; |
4265 | S32 m2 = openers.find(c); | 4263 | S32 m2 = openers.find(c); |
@@ -4268,11 +4266,12 @@ S32 LLTextEditor::findHTMLToken(const std::string &line, S32 pos, BOOL reverse) | |||
4268 | return index+1; | 4266 | return index+1; |
4269 | } | 4267 | } |
4270 | } | 4268 | } |
4269 | return 0; // index is -1, don't want to return that. | ||
4271 | } | 4270 | } |
4272 | else | 4271 | else |
4273 | { | 4272 | { |
4274 | 4273 | ||
4275 | for (index=pos; index<(S32)line.length(); index++) | 4274 | for (int index=pos; index<(S32)line.length(); index++) |
4276 | { | 4275 | { |
4277 | char c = line[index]; | 4276 | char c = line[index]; |
4278 | S32 m2 = closers.find(c); | 4277 | S32 m2 = closers.find(c); |
@@ -4281,9 +4280,8 @@ S32 LLTextEditor::findHTMLToken(const std::string &line, S32 pos, BOOL reverse) | |||
4281 | return index; | 4280 | return index; |
4282 | } | 4281 | } |
4283 | } | 4282 | } |
4283 | return line.length(); | ||
4284 | } | 4284 | } |
4285 | |||
4286 | return index; | ||
4287 | } | 4285 | } |
4288 | 4286 | ||
4289 | BOOL LLTextEditor::findHTML(const std::string &line, S32 *begin, S32 *end) const | 4287 | BOOL LLTextEditor::findHTML(const std::string &line, S32 *begin, S32 *end) const |