diff options
author | Volker Stolz <vs@FreeBSD.org> | 2004-08-10 11:45:48 +0000 |
---|---|---|
committer | Volker Stolz <vs@FreeBSD.org> | 2004-08-10 11:45:48 +0000 |
commit | c603ef128de0cc78ff8217f26a0ddcb43b7b199a (patch) | |
tree | d985c5142c38beb46b8483ca7ac4c771c001a5eb /graphics/graphopt/files | |
parent | a206f0d32d3b4ec0efbe9ad42352d369f3a54a58 (diff) | |
download | ports-c603ef128de0cc78ff8217f26a0ddcb43b7b199a.tar.gz ports-c603ef128de0cc78ff8217f26a0ddcb43b7b199a.zip |
Notes
Diffstat (limited to 'graphics/graphopt/files')
-rw-r--r-- | graphics/graphopt/files/patch-src:classes:psExporter.cc | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/graphics/graphopt/files/patch-src:classes:psExporter.cc b/graphics/graphopt/files/patch-src:classes:psExporter.cc new file mode 100644 index 000000000000..3db6b86bae59 --- /dev/null +++ b/graphics/graphopt/files/patch-src:classes:psExporter.cc @@ -0,0 +1,17 @@ +--- src/classes/psExporter.cc.orig Mon Aug 9 09:31:11 2004 ++++ src/classes/psExporter.cc Mon Aug 9 09:31:38 2004 +@@ -23,13 +23,13 @@ void psExporter::do_export() { + fclose(outfile); + } + + + void psExporter::write_headers(FILE *outfile) { + char *line = new char[200]; +- sprintf(line, "\%!PS-Adobe-1.0\n%%%%BoundingBox: 0 0 %d %d\n%%%%DocumentFonts: Helvetica\n%%%%Pages: 1\n", ++ sprintf(line, "%%!PS-Adobe-1.0\n%%%%BoundingBox: 0 0 %d %d\n%%%%DocumentFonts: Helvetica\n%%%%Pages: 1\n", + translatexcoord((double) biggest_x) + 2 * margin, + translateycoord((double) biggest_y) + 2 * margin); + fwrite(line, strlen(line), 1, outfile); + delete line; + } + |