]> granicus.if.org Git - graphviz/commitdiff
Partial fix for bug 1183
authorerg <devnull@localhost>
Fri, 31 Aug 2007 22:02:31 +0000 (22:02 +0000)
committererg <devnull@localhost>
Fri, 31 Aug 2007 22:02:31 +0000 (22:02 +0000)
lib/common/emit.c

index 192ebccaebb5bd4acc32b1aa25794f7dea6b6e8b..02a4a6e9afdf3ba46275fc0a9b541ef4e0375b88 100644 (file)
@@ -1512,6 +1512,11 @@ static void emit_edge_graphics(GVJ_t * job, edge_t * e)
                        arrow_gen(job, EMIT_HDRAW, bz.ep, bz.list[bz.size - 1],
                                scale, bz.eflag);
                    }
+                    /* arrow_gen resets the job style 
+                     * If we have more splines to do, restore the old one.
+                     */
+                   if ((ED_spl(e)->size>1) && (bz.sflag||bz.eflag) && styles) 
+                       gvrender_set_style(job, styles);
                }
                free(bzf.list);
            }