summaryrefslogtreecommitdiff
path: root/libspectre
diff options
context:
space:
mode:
authorCarlos Garcia Campos <carlosgc@gnome.org>2010-02-21 13:22:18 +0100
committerCarlos Garcia Campos <carlosgc@gnome.org>2010-02-21 13:22:18 +0100
commitd25e37b5e52d83af50924a548da6f10983960735 (patch)
treed0a454bc5e9cc2c65edfc82158873957af1fc786 /libspectre
parentb039f45f826e4516b8717d0bcfbee692fab4d385 (diff)
Ignore page order parameter of %%Pages if there's a %%PageOrder comment
It caused problems in documents where there's a %%PageOrder after the %%Pages comment. See evince bug https://bugzilla.gnome.org/show_bug.cgi?id=585436
Diffstat (limited to 'libspectre')
-rw-r--r--libspectre/ps.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/libspectre/ps.c b/libspectre/ps.c
index f4cb481..c565841 100644
--- a/libspectre/ps.c
+++ b/libspectre/ps.c
@@ -587,13 +587,10 @@ psscan(const char *filename, int scanstyle)
if (page_order_set == NONE) {
if (page_order == -1) {
doc->pageorder = DESCEND;
- page_order_set = 1;
} else if (page_order == 0) {
doc->pageorder = SPECIAL;
- page_order_set = 1;
} else if (page_order == 1) {
doc->pageorder = ASCEND;
- page_order_set = 1;
}
}
case 1: