source: trunk/dports/math/gnuplot/files/patch-term-pdf.trm @ 21489

Last change on this file since 21489 was 21489, checked in by eridius@…, 13 years ago

Massive update to svn properties on files:
All patchfiles have svn:eol-style removed.
All files that are not in fact able to be executed have svn:executable removed
All binary files have svn:eol-style removed (and are probably corrupt)
All binary files have svn:mime-type set to application/octet-stream
All files which are not patchfiles or binary files have svn:eol-style set to native
All Portfiles have svn:eol-style set to native and svn:executable removed

File size: 871 bytes
Line 
1--- foo/term/pdf.trm.old        2004-04-11 00:55:17.000000000 +0900
2+++ foo/term/pdf.trm    2006-09-17 12:24:04.000000000 +0900
3@@ -342,8 +342,11 @@
4     if (!myPDF)
5        myPDF = PDF_new();
6 
7-    /*open new PDF file */
8-    if (PDF_open_fp(myPDF, gpoutfile) == -1)
9+    /*open new PDF file */
10+    if (outstr == NULL) {
11+    int_error(NO_CARET, "Error:cannot write PDF to stdout .\n");
12+    }
13+    if (PDF_open_file(myPDF, outstr) == -1)
14        int_error(NO_CARET, "Error:cannot open PDF file .\n");
15 
16 #ifdef PDF_DONT_COMPRESS
17@@ -352,7 +355,7 @@
18     PDF_set_value(myPDF, "compress", 0);
19 #endif
20 
21-    PDF_set_info(myPDF,"Creator","gnuplot-3.8e");
22+    PDF_set_info(myPDF,"Creator","gnuplot-4.0");
23     PDF_set_info(myPDF,"Author","Hans-Bernhard Broeker"); /* FIXME: put in username? */
24     PDF_set_info(myPDF,"Title","gnuplot diagram"); /* FIXME: use 'set title', if any ? */
25     
Note: See TracBrowser for help on using the repository browser.