From: Matthew Fernandez Date: Fri, 18 Jun 2021 01:17:47 +0000 (-0700) Subject: abbreviate an open coded fmin in genPorts X-Git-Tag: 2.48.0~43^2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5a31408fdd56289ab45b5d6bc11f45233299c9dd;p=graphviz abbreviate an open coded fmin in genPorts --- diff --git a/lib/fdpgen/layout.c b/lib/fdpgen/layout.c index 2fc54812d..78b44ca33 100644 --- a/lib/fdpgen/layout.c +++ b/lib/fdpgen/layout.c @@ -667,10 +667,8 @@ genPorts(node_t * n, erec * er, bport_t * pp, int idx, double bnd) else other = aghead(e); - delta = (bnd - er->alpha) / cnt; + delta = fmin((bnd - er->alpha) / cnt, ANG); angle = er->alpha; - if (delta > ANG) - delta = ANG; if (n < other) { i = idx;