diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2006-02-10 18:16:42 +0100 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2006-02-10 18:16:42 +0100 |
commit | 302137a16e357c03ace819fd9f5085ac86844570 (patch) | |
tree | 5b61f97c247d48d82303cd3e2dfd516f714fdaad | |
parent | 340380c6fd518e2a73597eae5b464c8914fd1bc9 (diff) | |
parent | 28f71459b255ad798436c9dba3ca0b5613cb2ccc (diff) |
merge
-rw-r--r-- | src/PostscriptDSC.cxx | 6 |
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); |