From: Matthew Fernandez Date: Thu, 8 Sep 2022 03:36:45 +0000 (-0700) Subject: osage layout: remove shadowing of 'p' X-Git-Tag: 6.0.1~5^2~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9d46bbc85d9bff0661fc8c3067f327d82019c131;p=graphviz osage layout: remove shadowing of 'p' --- diff --git a/lib/osage/osageinit.c b/lib/osage/osageinit.c index 3d0028b7c..3e8191a6a 100644 --- a/lib/osage/osageinit.c +++ b/lib/osage/osageinit.c @@ -196,18 +196,17 @@ layout (Agraph_t* g, int depth) } if (GD_label(g)) { - pointf p; double d; - p = GD_label(g)->dimen; + pointf pt = GD_label(g)->dimen; if (total == 0) { rootbb.LL.x = 0; rootbb.LL.y = 0; - rootbb.UR.x = p.x; - rootbb.UR.y = p.y; + rootbb.UR.x = pt.x; + rootbb.UR.y = pt.y; } - d = p.x - (rootbb.UR.x - rootbb.LL.x); + d = pt.x - (rootbb.UR.x - rootbb.LL.x); if (d > 0) { /* height of label is added below */ d /= 2; rootbb.LL.x -= d;