Make sure to break out of the loop when converting from UTF-8 to UTF-16 line breakes. Otherwise we could re-use the already converted number and re-convert the value again. This should fix problems on sites like kr.yahoo.com. Not part of the default build.

This commit is contained in:
blizzard%redhat.com 2004-09-08 19:52:35 +00:00
Родитель f4a48e2f49
Коммит 218b5f34e9
1 изменённых файлов: 1 добавлений и 0 удалений

Просмотреть файл

@ -674,6 +674,7 @@ nsFontMetricsPango::GetTextDimensions(const PRUnichar* aString,
// if (aNumCharsFit != aBreaks[i])
// printf("Fixing utf8 -> utf16 %d -> %d\n", aNumCharsFit, aBreaks[i]);
aNumCharsFit = aBreaks[i];
break;
}
}