summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2006-02-10 18:16:42 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2006-02-10 18:16:42 +0100
commit302137a16e357c03ace819fd9f5085ac86844570 (patch)
tree5b61f97c247d48d82303cd3e2dfd516f714fdaad
parent340380c6fd518e2a73597eae5b464c8914fd1bc9 (diff)
parent28f71459b255ad798436c9dba3ca0b5613cb2ccc (diff)
merge
-rw-r--r--src/PostscriptDSC.cxx6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/PostscriptDSC.cxx b/src/PostscriptDSC.cxx
index 22cfe40..3062763 100644
--- a/src/PostscriptDSC.cxx
+++ b/src/PostscriptDSC.cxx
@@ -85,11 +85,7 @@ PostscriptDSC::parse(int fd) {
bb_read++;
} else if (strncmp(linebuf, "%%EndSetup", strlen("%%EndSetup")) == 0) {
setup_len = ftello(fp);
- } else if (sscanf(linebuf, "%%%%Pages: %d", &ps) == 1) {
- if (pages != 0) {
- fprintf(stderr, "Multiple Pages tags found\n");
- return 1;
- }
+ } else if (pages == 0 && sscanf(linebuf, "%%%%Pages: %d", &ps) == 1) {
pages = ps;
page_off = (size_t*) malloc(sizeof(size_t) * pages);