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:
parent
a206f0d32d
commit
c603ef128d
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=115817
@ -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}
|
||||
|
17
graphics/graphopt/files/patch-src:classes:psExporter.cc
Normal file
17
graphics/graphopt/files/patch-src:classes:psExporter.cc
Normal 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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user