The following commit has been merged in the upstream branch:
commit c8fb40a688882dc78f520f508855317c5678538b
Author: Robin Cornelius <[email protected]>
Date:   Tue Nov 25 21:16:41 2008 +0000

    Imported Upstream version 1.22.1

diff --git a/indra/llcommon/llversionviewer.h b/indra/llcommon/llversionviewer.h
index 6e7d6ce..6ff2604 100644
--- a/indra/llcommon/llversionviewer.h
+++ b/indra/llcommon/llversionviewer.h
@@ -34,7 +34,7 @@
 
 const S32 LL_VERSION_MAJOR = 1;
 const S32 LL_VERSION_MINOR = 22;
-const S32 LL_VERSION_PATCH = 0;
+const S32 LL_VERSION_PATCH = 1;
 const S32 LL_VERSION_BUILD = 0;
 
 const char * const LL_CHANNEL = "Second Life Release";
diff --git a/indra/llui/lltexteditor.cpp b/indra/llui/lltexteditor.cpp
index 281dbe4..4b0acf8 100644
--- a/indra/llui/lltexteditor.cpp
+++ b/indra/llui/lltexteditor.cpp
@@ -4255,11 +4255,9 @@ S32 LLTextEditor::findHTMLToken(const std::string &line, 
S32 pos, BOOL reverse)
        std::string openers=" \t\n('\"[{<>";
        std::string closers=" \t\n)'\"]}><;";
 
-       S32 index = 0;
-       
        if (reverse)
        {
-               for (index=pos; index >= 0; index--)
+               for (int index=pos; index >= 0; index--)
                {
                        char c = line[index];
                        S32 m2 = openers.find(c);
@@ -4268,11 +4266,12 @@ S32 LLTextEditor::findHTMLToken(const std::string 
&line, S32 pos, BOOL reverse)
                                return index+1;
                        }
                }
+               return 0; // index is -1, don't want to return that. 
        } 
        else
        {
                
-               for (index=pos; index<(S32)line.length(); index++)
+               for (int index=pos; index<(S32)line.length(); index++)
                {
                        char c = line[index];
                        S32 m2 = closers.find(c);
@@ -4281,9 +4280,8 @@ S32 LLTextEditor::findHTMLToken(const std::string &line, 
S32 pos, BOOL reverse)
                                return index;
                        }
                } 
+               return line.length();
        }               
-       
-       return index;
 }
 
 BOOL LLTextEditor::findHTML(const std::string &line, S32 *begin, S32 *end) 
const

-- 
A client for connecting to 3D metaverses such as Linden Labs Secondlife(tm) and 
OpenSim grids

_______________________________________________
Pkg-games-commits mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/pkg-games-commits

Reply via email to