Checking in a infinite loop fix done by Vidur, not part of the build.
git-svn-id: svn://10.0.0.236/trunk@78690 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -374,7 +374,13 @@ nsHTMLContentSerializer::AppendToStringWrapped(const nsAReadableString& aStr,
|
||||
if (start < 0)
|
||||
start = 0;
|
||||
|
||||
indx = aStr.FindChar(PRUnichar(' '), strOffset + start);
|
||||
if ((strOffset + start) < length) {
|
||||
indx = aStr.FindChar(PRUnichar(' '), strOffset + start);
|
||||
}
|
||||
else {
|
||||
indx = kNotFound;
|
||||
}
|
||||
|
||||
// if there is no break than just add the entire string
|
||||
if (indx == kNotFound)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user