FreeBSD Bugzilla – Attachment 45552 Details for
Bug 70199
[PATCH] graphics/graphopt: fix postscript export
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1017 bytes, created by
Marco Molteni
on 2004-08-09 09:20:26 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Marco Molteni
Created:
2004-08-09 09:20:26 UTC
Size:
1017 bytes
patch
obsolete
>diff --unified=6 --show-c-function -rN graphopt/files/patch-src:classes:psExporter.cc graphopt-marco/files/patch-src:classes:psExporter.cc >--- graphopt/files/patch-src:classes:psExporter.cc Thu Jan 1 01:00:00 1970 >+++ graphopt-marco/files/patch-src:classes:psExporter.cc Mon Aug 9 09:34:26 2004 >@@ -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; >+ } >+
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 70199
: 45552