Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <mpg@redhat.com>2005-04-18 11:02:07 (GMT)
committer Marco Pesenti Gritti <marco@src.gnome.org>2005-04-18 11:02:07 (GMT)
commitb8261d154d9bd065eb6b557b1c9c80e47ea2b4d1 (patch)
treecfc9bf241e18f8d27f56efb2f71a4fac3ae2eb7d
parent847c9a92060b6b1936066136d43f7cf2f06ca34e (diff)
Respect document orientation
2005-04-18 Marco Pesenti Gritti <mpg@redhat.com> * ps/ps-document.c: (get_page_orientation): Respect document orientation
-rw-r--r--ChangeLog6
-rw-r--r--ps/ps-document.c6
2 files changed, 12 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 633df22..7e82927 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2005-04-18 Marco Pesenti Gritti <mpg@redhat.com>
+
+ * ps/ps-document.c: (get_page_orientation):
+
+ Respect document orientation
+
2005-04-17 Nickolay V. Shmyrev <nshmyrev@yandex.ru>
* djvu/Makefile.am:
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;
}