aboutsummaryrefslogtreecommitdiffstats
path: root/embed/xulrunner/components/GeckoPrintService.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'embed/xulrunner/components/GeckoPrintService.cpp')
-rw-r--r--embed/xulrunner/components/GeckoPrintService.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/embed/xulrunner/components/GeckoPrintService.cpp b/embed/xulrunner/components/GeckoPrintService.cpp
index b1d34a960..ceab26809 100644
--- a/embed/xulrunner/components/GeckoPrintService.cpp
+++ b/embed/xulrunner/components/GeckoPrintService.cpp
@@ -646,7 +646,8 @@ GeckoPrintService::TranslateSettings (GtkPrintSettings *aGtkSettings,
gtk_print_settings_set_page_ranges (aGtkSettings, NULL, 0);
gtk_print_settings_set_page_set (aGtkSettings, GTK_PAGE_SET_ALL);
- switch (gtk_print_settings_get_orientation (aGtkSettings)) {
+ /* We must use the page setup here instead of the print settings, see gtk bug #485685 */
+ switch (gtk_page_setup_get_orientation (aPageSetup)) {
case GTK_PAGE_ORIENTATION_PORTRAIT:
case GTK_PAGE_ORIENTATION_REVERSE_PORTRAIT: /* not supported */
aSettings->SetOrientation (nsIPrintSettings::kPortraitOrientation);