Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/ps/ps-document.c
diff options
context:
space:
mode:
Diffstat (limited to 'ps/ps-document.c')
-rw-r--r--ps/ps-document.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/ps/ps-document.c b/ps/ps-document.c
index 9a7bf70..8f514cf 100644
--- a/ps/ps-document.c
+++ b/ps/ps-document.c
@@ -509,6 +509,12 @@ get_page_orientation (PSDocument *gs, int page)
orientation = gs->doc->pages[page].orientation;
}
if (orientation == GTK_GS_ORIENTATION_NONE) {
+ orientation = gs->doc->default_page_orientation;
+ }
+ if (orientation == GTK_GS_ORIENTATION_NONE) {
+ orientation = gs->doc->orientation;
+ }
+ if (orientation == GTK_GS_ORIENTATION_NONE) {
orientation = GTK_GS_ORIENTATION_PORTRAIT;
}