]> granicus.if.org Git - graphviz/commitdiff
wrong output file
authorellson <devnull@localhost>
Mon, 19 Jun 2006 13:36:53 +0000 (13:36 +0000)
committerellson <devnull@localhost>
Mon, 19 Jun 2006 13:36:53 +0000 (13:36 +0000)
plugin/core/gvrender_core_ps.c

index 3ac746bed1242f6f5305afda89ecf0a0386441af..d76f67690e801f95b91c8c625654fe5efaef819b 100644 (file)
@@ -256,8 +256,9 @@ ps_set_pen_style(GVJ_t *job)
 {
     double penwidth = job->style->penwidth * job->zoom;
     char *p, *line, **s = job->rawstyle;
+    FILE *out = job->output_file;
 
-    fprintf(stderr,"%g setlinewidth\n", penwidth);
+    fprintf(out,"%g setlinewidth\n", penwidth);
 
     while (s && (p = line = *s++)) {
        if (strcmp(line, "setlinewidth") == 0)
@@ -266,14 +267,14 @@ ps_set_pen_style(GVJ_t *job)
            p++;
        p++;
        while (*p) {
-            fprintf(stderr,"%s ", p);
+            fprintf(out,"%s ", p);
            while (*p)
                p++;
            p++;
        }
        if (strcmp(line, "invis") == 0)
            job->style->penwidth = 0;
-       fprintf(stderr, "%s\n", line);
+       fprintf(out, "%s\n", line);
     }
 }