From 0a2e5e4d1e51cd4a2ddfe5f320e00b2b44dfe806 Mon Sep 17 00:00:00 2001 From: mental Date: Tue, 23 May 2006 06:28:47 +0000 Subject: [PATCH] move %%EOF to end of output document --- ChangeLog | 6 ++++++ src/extension/internal/ps.cpp | 5 ++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 93b22d4c7..83d3e06e7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2006-05-23 MenTaLguY + + * src/extension/internal/ps.cpp: + + move %%EOF to end of output document + 2006-05-22 Jon A. Cruz * src/dialogs/swatches.cpp, src/ui/widget/panel.cpp, 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); -- 2.30.2