From b8261d154d9bd065eb6b557b1c9c80e47ea2b4d1 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Mon, 18 Apr 2005 11:02:07 +0000 Subject: Respect document orientation 2005-04-18 Marco Pesenti Gritti * ps/ps-document.c: (get_page_orientation): Respect document orientation --- (limited to 'ps') 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; } -- cgit v0.9.1