Fixing bustage...

git-svn-id: svn://10.0.0.236/trunk@226937 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
roc+%cs.cmu.edu
2007-05-24 03:40:15 +00:00
parent fd7a8f43bd
commit eb8d7b0960

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)
{