Bug 629309 - Fix unmatched enum warning in nsDeviceContextSpecGTK::GetSurfaceForPrinter; r=roc a=joe

This commit is contained in:
Ms2ger 2011-02-01 11:16:46 +01:00
Родитель 6f1d5a224d
Коммит fec572c254
1 изменённых файлов: 5 добавлений и 4 удалений

Просмотреть файл

@ -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;
}
}
}