diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2006-02-10 18:16:28 +0100 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2006-02-10 18:16:28 +0100 |
commit | 28f71459b255ad798436c9dba3ca0b5613cb2ccc (patch) | |
tree | 6d16bf70d203646caf79c9e7f916f6c6facde645 /src | |
parent | 263c3dafed233ed2040f53f19f5d20809e9ef42d (diff) |
use first Pages tag in DSC
Diffstat (limited to 'src')
-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); |