aboutsummaryrefslogtreecommitdiffstats
path: root/embed
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2003-08-15 18:11:27 +0800
committerChristian Persch <chpe@src.gnome.org>2003-08-15 18:11:27 +0800
commite9b4a684b1f0faba2019b16000bc4e049173308a (patch)
treeb25d0cb675d2159a7355d95a24fa67f75e74bb47 /embed
parentf4f15a082b32eb99b34ff237fef1772e07079045 (diff)
downloadgsoc2013-epiphany-e9b4a684b1f0faba2019b16000bc4e049173308a.tar
gsoc2013-epiphany-e9b4a684b1f0faba2019b16000bc4e049173308a.tar.gz
gsoc2013-epiphany-e9b4a684b1f0faba2019b16000bc4e049173308a.tar.bz2
gsoc2013-epiphany-e9b4a684b1f0faba2019b16000bc4e049173308a.tar.lz
gsoc2013-epiphany-e9b4a684b1f0faba2019b16000bc4e049173308a.tar.xz
gsoc2013-epiphany-e9b4a684b1f0faba2019b16000bc4e049173308a.tar.zst
gsoc2013-epiphany-e9b4a684b1f0faba2019b16000bc4e049173308a.zip
Fix bug #119818.
2003-08-15 Christian Persch <chpe@cvs.gnome.org> * embed/mozilla/MozillaPrivate.cpp: (MozillaCollatePrintSettings): Fix bug #119818.
Diffstat (limited to 'embed')
-rw-r--r--embed/mozilla/MozillaPrivate.cpp15
1 files changed, 14 insertions, 1 deletions
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);