From: Marco Pesenti Gritti Date: Mon, 18 Apr 2005 11:02:07 +0000 (+0000) Subject: Respect document orientation X-Git-Tag: EVINCE_0_2_1~35 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=b8261d154d9bd065eb6b557b1c9c80e47ea2b4d1;p=evince.git Respect document orientation 2005-04-18 Marco Pesenti Gritti * ps/ps-document.c: (get_page_orientation): Respect document orientation --- diff --git a/ChangeLog b/ChangeLog index 633df221..7e829279 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-04-18 Marco Pesenti Gritti + + * ps/ps-document.c: (get_page_orientation): + + Respect document orientation + 2005-04-17 Nickolay V. Shmyrev * djvu/Makefile.am: diff --git a/ps/ps-document.c b/ps/ps-document.c index 9a7bf70b..8f514cff 100644 --- a/ps/ps-document.c +++ b/ps/ps-document.c @@ -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; }