diff options
| author | MenTaLguY <mental@rydia.net> | 2006-05-23 06:28:47 +0000 |
|---|---|---|
| committer | mental <mental@users.sourceforge.net> | 2006-05-23 06:28:47 +0000 |
| commit | e70fd7776a7dda8bcc5559249d19a84bbc9b3513 (patch) | |
| tree | de2201b246d92f227e7fda9a3337d33d263167a3 /src/extension/internal/ps.cpp | |
| parent | Update to SVN; small tweaks. (diff) | |
| download | inkscape-e70fd7776a7dda8bcc5559249d19a84bbc9b3513.tar.gz inkscape-e70fd7776a7dda8bcc5559249d19a84bbc9b3513.zip | |
move %%EOF to end of output document
(bzr r972)
Diffstat (limited to 'src/extension/internal/ps.cpp')
| -rw-r--r-- | src/extension/internal/ps.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/extension/internal/ps.cpp b/src/extension/internal/ps.cpp index d474f8533..7b7698844 100644 --- a/src/extension/internal/ps.cpp +++ b/src/extension/internal/ps.cpp @@ -417,8 +417,6 @@ PrintPS::begin(Inkscape::Extension::Print *mod, SPDocument *doc) } } - os << "%%EOF\n"; - /* FIXME: This function is declared to return unsigned, whereas fprintf returns a signed int * * that can be zero if the first fprintf failed (os is empty) or "negative" (i.e. very positive * in unsigned int interpretation) if the first fprintf failed but this one succeeds, or @@ -490,7 +488,8 @@ PrintPS::finish(Inkscape::Extension::Print *mod) nr_free(px); } - int const res = fprintf(_stream, "showpage\n"); + fprintf(_stream, "showpage\n"); + int const res = fprintf(_stream, "%%EOF\n"); /* Flush stream to be sure. */ (void) fflush(_stream); |
