opnsense-ports/graphics/graphopt/files/patch-src:classes:psExporter.cc
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

17 lines
734 B
C++

--- src/classes/psExporter.cc.orig Mon Aug 9 09:31:11 2004
+++ src/classes/psExporter.cc Mon Aug 9 09:31:38 2004
@@ -1,4 +1,5 @@
#include "psExporter.h"
+#include <cstdlib>
psExporter::psExporter(char *what_file, nodes *what_nodes) {
@@ -26,7 +27,7 @@
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);