From: ulferikson Date: Mon, 11 Dec 2006 19:52:34 +0000 (+0000) Subject: Fix for bug #1561416, as suggested by kuesterei X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=fdd5899e545fe4c6c7641819bc37343c72c2f8c5;p=inkscape.git Fix for bug #1561416, as suggested by kuesterei --- diff --git a/src/extension/internal/ps.cpp b/src/extension/internal/ps.cpp index a5208cfee..ea446afea 100644 --- a/src/extension/internal/ps.cpp +++ b/src/extension/internal/ps.cpp @@ -430,10 +430,12 @@ PrintPS::begin(Inkscape::Extension::Print *mod, SPDocument *doc) << d.x0 << " " << (_height - d.y0) << " " << d.x1 << "\n"; - os << "%%DocumentMedia: plain " - << (int) ceil(_height) << " " - << (int) ceil(_width) << " " - << "0 () ()\n"; + if (!epsexport) { + os << "%%DocumentMedia: plain " + << (int) ceil(_height) << " " + << (int) ceil(_width) << " " + << "0 () ()\n"; + } } else { os << "%%Orientation: Portrait\n"; os << "%%BoundingBox: " << (int) d.x0 << " "