зеркало из https://github.com/mozilla/pjs.git
Bug 629309 - Fix unmatched enum warning in nsDeviceContextSpecGTK::GetSurfaceForPrinter; r=roc a=joe
This commit is contained in:
Родитель
6f1d5a224d
Коммит
fec572c254
|
@ -476,12 +476,13 @@ NS_IMETHODIMP nsDeviceContextSpecGTK::GetSurfaceForPrinter(gfxASurface **aSurfac
|
|||
const gchar* fmtGTK = gtk_print_settings_get(mGtkPrintSettings, GTK_PRINT_SETTINGS_OUTPUT_FILE_FORMAT);
|
||||
if (!fmtGTK && GTK_IS_PRINTER(mGtkPrinter)) {
|
||||
// Likely not print-to-file, check printer's capabilities
|
||||
format = (gtk_printer_accepts_ps(mGtkPrinter)) ? nsIPrintSettings::kOutputFormatPS
|
||||
: nsIPrintSettings::kOutputFormatPDF;
|
||||
format = (gtk_printer_accepts_ps(mGtkPrinter))
|
||||
? static_cast<PRInt16>(nsIPrintSettings::kOutputFormatPS)
|
||||
: static_cast<PRInt16>(nsIPrintSettings::kOutputFormatPDF);
|
||||
} else if (nsDependentCString(fmtGTK).EqualsIgnoreCase("pdf")) {
|
||||
format = nsIPrintSettings::kOutputFormatPDF;
|
||||
format = nsIPrintSettings::kOutputFormatPDF;
|
||||
} else {
|
||||
format = nsIPrintSettings::kOutputFormatPS;
|
||||
format = nsIPrintSettings::kOutputFormatPS;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче