X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=style_sheets.cpp;h=9c599826e921abace5045c2d8cbe0659b1bbfd88;hb=99b1207e57f31c2f642219c2f2bce855d7bca20b;hp=4b00ce49d7bcb328df50b109e381f82f5b9c2131;hpb=194f5f8a53d16a8a07c61df2311a13b3cd3994bf;p=videolink.git diff --git a/style_sheets.cpp b/style_sheets.cpp index 4b00ce4..9c59982 100644 --- a/style_sheets.cpp +++ b/style_sheets.cpp @@ -42,7 +42,7 @@ void apply_style_sheet(nsIStyleSheet * style_sheet, nsIPresShell * pres_shell) { nsCOMArray style_sheets; check(pres_shell->GetAgentStyleSheets(style_sheets)); - check(style_sheets.InsertObjectAt(style_sheet, 0)); + check(style_sheets.AppendObject(style_sheet)); check(pres_shell->SetAgentStyleSheets(style_sheets)); // FIXME: We need to find an alternative that works in Mozilla 1.8.