]> git.tokkee.org Git - inkscape.git/commitdiff

Code

fix [ 1561416 ] EPS export broken
authortheAdib <theAdib@users.sourceforge.net>
Tue, 26 Dec 2006 15:03:09 +0000 (15:03 +0000)
committertheAdib <theAdib@users.sourceforge.net>
Tue, 26 Dec 2006 15:03:09 +0000 (15:03 +0000)
src/extension/internal/ps.cpp

index dc03e142a9ca22fa40d1564d0d42403b94bcf0f1..8eba5fb18ead58592c9ee4527882f4e31465c4aa 100644 (file)
@@ -447,10 +447,12 @@ PrintPS::begin(Inkscape::Extension::Print *mod, SPDocument *doc)
                << d.y0 << " "
                << d.x1 << " "
                << d.y1 << "\n";
-            os << "%%DocumentMedia: plain "
-               << (int) ceil(_width) << " "
-               << (int) ceil(_height) << " "
-               << "0 () ()\n";
+            if (!epsexport) {
+                               os << "%%DocumentMedia: plain "
+                                  << (int) ceil(_width) << " "
+                  << (int) ceil(_height) << " "
+                  << "0 () ()\n";
+                       }
         }
 
         os << "%%EndComments\n";