]> www.fi.muni.cz Git - evince.git/commitdiff
Respect document orientation
authorMarco Pesenti Gritti <mpg@redhat.com>
Mon, 18 Apr 2005 11:02:07 +0000 (11:02 +0000)
committerMarco Pesenti Gritti <marco@src.gnome.org>
Mon, 18 Apr 2005 11:02:07 +0000 (11:02 +0000)
2005-04-18  Marco Pesenti Gritti <mpg@redhat.com>

        * ps/ps-document.c: (get_page_orientation):

        Respect document orientation

ChangeLog
ps/ps-document.c

index 633df221736b5f858f03fd6013df280087099adb..7e829279a8148b9d1dd14702754cbd107faf1817 100644 (file)
--- 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:
index 9a7bf70b0c61d5004aeeafcab83a428c086000b8..8f514cfffd7c9cb644b8f8756480ef0fa1cdae7f 100644 (file)
@@ -508,6 +508,12 @@ get_page_orientation (PSDocument *gs, int page)
        if (gs->structured_doc) {
                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;
        }