зеркало из https://github.com/mozilla/pjs.git
Bug 424751 On Linux/Unix, landscape mode setting failed if there is no CUPS printer configured.
ventnor.bugzilla: review+ roc: superreview+ beltzner: approval1.9+
This commit is contained in:
Родитель
771ca96e3d
Коммит
fa9c2da749
|
@ -477,11 +477,6 @@ nsPrintSettingsGTK::SetPrinterName(const PRUnichar * aPrinter)
|
|||
{
|
||||
NS_ConvertUTF16toUTF8 gtkPrinter(aPrinter);
|
||||
|
||||
if (StringBeginsWith(gtkPrinter, NS_LITERAL_CSTRING("PostScript/"))) {
|
||||
// Don't bother importing this name
|
||||
gtkPrinter.AssignLiteral("");
|
||||
}
|
||||
|
||||
if (StringBeginsWith(gtkPrinter, NS_LITERAL_CSTRING("CUPS/"))) {
|
||||
// Strip off "CUPS/"; GTK might recognize the rest
|
||||
gtkPrinter.Cut(0, strlen("CUPS/"));
|
||||
|
|
Загрузка…
Ссылка в новой задаче