From 796aaec9de4f56401e4f2a7fb773b1aa8731d8e7 Mon Sep 17 00:00:00 2001 From: ellson Date: Mon, 5 Oct 2009 13:06:08 +0000 Subject: [PATCH] Fix for bug#1747 - there should be no head arrow with dir=back arrowhead=normal --- lib/common/arrows.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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)) { -- 2.40.0