Number: 375
Title: edge/decorate improvement
Submitter: Helge Oldach
Date: Thu Nov 13 09:24:47 2003
Subsys: Output generation
Version: 1.10
System: x86-Unix-FreeBSD 4.9
Severity: cosmetic
Problem:
The decorate attribute causes the underline and link to the edge being printed in the same style as the edge. This is ugly, as it is ugly to have arrows in the same style. For arrows, the style is reset to solid/linewidth(1) - but for decorate this isn't the case. The attached simple patch fixes this.
Fix:
--- dotneato/common/emit.c.ORIG Tue May 27 15:58:59 2003 +++ dotneato/common/emit.c Thu Nov 13 13:42:24 2003 @@ -379,8 +379,15 @@ } if (ED_label(e)) { emit_label(ED_label(e),e->tail->graph); - if (mapbool(late_string(e,E_decorate,"false")) && ED_spl(e)) + if (mapbool(late_string(e,E_decorate,"false")) && ED_spl(e)) { + static char *arrowstyle_solid[2] = {"solid0"}; + static char *arrowstyle_width[3] = {"setlinewidth0""10"}; + + /* Dotted and dashed styles on the attachment are ugly */ + CodeGen->set_style(arrowstyle_solid); + CodeGen->set_style(arrowstyle_width); emit_attachment(ED_label(e),ED_spl(e)); + } } if (ED_head_label(e)) emit_label(ED_head_label(e),e->tail->graph); /* vladimir */ if (ED_tail_label(e)) emit_label(ED_tail_label(e),e->tail->graph); /* vladimir */
Owner: erg
Status: Fixed (13 November 2003)