1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

Fix generation of PostScript-files

(bump PORTREVISION)

PR:		ports/70199
Submitted by:	Marco Molteni
This commit is contained in:
Volker Stolz 2004-08-10 11:45:48 +00:00
parent a206f0d32d
commit c603ef128d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=115817
2 changed files with 18 additions and 1 deletions

View File

@ -8,7 +8,7 @@
PORTNAME= graphopt
PORTVERSION= 0.4.1
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}

View File

@ -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;
}