From: ellson Date: Mon, 5 Oct 2009 13:06:08 +0000 (+0000) Subject: Fix for bug#1747 - there should be no head arrow with dir=back arrowhead=normal X-Git-Tag: LAST_LIBGRAPH~32^2~1691 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=796aaec9de4f56401e4f2a7fb773b1aa8731d8e7;p=graphviz Fix for bug#1747 - there should be no head arrow with dir=back arrowhead=normal --- diff --git a/lib/common/arrows.c b/lib/common/arrows.c index 3686355aa..110920d00 100644 --- a/lib/common/arrows.c +++ b/lib/common/arrows.c @@ -199,14 +199,14 @@ void arrow_flags(Agedge_t * e, int *sflag, int *eflag) } } #ifdef WITH_CGRAPH - if (E_arrowhead && ((attr = agxget(e, E_arrowhead)))[0]) + if (E_arrowhead && (*eflag == ARR_TYPE_NORM) && ((attr = agxget(e, E_arrowhead)))[0]) arrow_match_name(attr, eflag); - if (E_arrowtail && ((attr = agxget(e, E_arrowtail)))[0]) + if (E_arrowtail && (*sflag == ARR_TYPE_NORM) && ((attr = agxget(e, E_arrowtail)))[0]) arrow_match_name(attr, sflag); #else - if (E_arrowhead && ((attr = agxget(e, E_arrowhead->index)))[0]) + if (E_arrowhead && (*eflag == ARR_TYPE_NORM) && ((attr = agxget(e, E_arrowhead->index)))[0]) arrow_match_name(attr, eflag); - if (E_arrowtail && ((attr = agxget(e, E_arrowtail->index)))[0]) + if (E_arrowtail && (*sflag == ARR_TYPE_NORM) && ((attr = agxget(e, E_arrowtail->index)))[0]) arrow_match_name(attr, sflag); #endif if (ED_conc_opp_flag(e)) {