mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 10:00:54 +00:00
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:
parent
f4a48e2f49
commit
218b5f34e9
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user