diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | embed/mozilla/MozillaPrivate.cpp | 15 |
2 files changed, 20 insertions, 1 deletions
@@ -1,5 +1,11 @@ 2003-08-15 Christian Persch <chpe@cvs.gnome.org> + * embed/mozilla/MozillaPrivate.cpp: (MozillaCollatePrintSettings): + + Fix bug #119818. + +2003-08-15 Christian Persch <chpe@cvs.gnome.org> + * embed/print-dialog.c: (print_get_info): Expand initial ~ in file name to print to. diff --git a/embed/mozilla/MozillaPrivate.cpp b/embed/mozilla/MozillaPrivate.cpp index 46ece8418..48d29fc10 100644 --- a/embed/mozilla/MozillaPrivate.cpp +++ b/embed/mozilla/MozillaPrivate.cpp @@ -87,7 +87,20 @@ NS_METHOD MozillaCollatePrintSettings (const EmbedPrintInfo *info, options->SetPrintCommand (NS_ConvertUTF8toUCS2(info->printer).get()); - options->SetPrintToFile (info->print_to_file); + /** + * Work around a mozilla bug where paper size & orientation are ignored + * and the specified file is created (containing invalid postscript) + * in print preview mode if we set "print to file" to true. + * See epiphany bug #119818. + */ + if (info->preview) + { + options->SetPrintToFile (PR_FALSE); + } + else + { + options->SetPrintToFile (info->print_to_file); + } /* native paper size formats. Our dialog does not support custom yet */ options->SetPaperSize (nsIPrintSettings::kPaperSizeNativeData); |