Fixing bustage...

This commit is contained in:
roc+@cs.cmu.edu 2007-05-23 20:40:15 -07:00
parent e138eb3816
commit 86579561f1

View File

@ -131,11 +131,12 @@ nsPangoLineBreaker::GetJISx4051Breaks(const PRUnichar* aText, PRUint32 aLen,
const gchar* end = p + aUTF8.Length();
PRUint32 u16Offset = 0;
static PangoLanguage* language = pango_language_from_string("en");
while (p < end)
{
PangoLogAttr* attr = attrBuffer.Elements();
pango_get_log_attrs(p, end - p, -1, pango_language_get_default(),
attr, attrBuffer.Length());
pango_get_log_attrs(p, end - p, -1, language, attr, attrBuffer.Length());
while (p < end)
{