]> granicus.if.org Git - graphviz/commitdiff
dotgen make_flat_bottom_edges: remove shadowing of 'splines' global
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 8 Sep 2022 00:27:49 +0000 (17:27 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 29 Jan 2023 16:24:43 +0000 (08:24 -0800)
lib/dotgen/dotsplines.c

index 68b098bef5966390f974edf1f9952dab0529369c..8f8ebc18a8c540ea611380208e5a988f76dee1bc 100644 (file)
@@ -1477,7 +1477,7 @@ make_flat_labeled_edge(graph_t* g, spline_info_t* sp, path* P, edge_t* e, int et
  */
 static void
 make_flat_bottom_edges(graph_t* g, spline_info_t* sp, path * P, edge_t ** edges, int 
-       ind, int cnt, edge_t* e, int splines)
+       ind, int cnt, edge_t* e, int use_splines)
 {
     node_t *tn, *hn;
     int j, i, r;
@@ -1534,7 +1534,7 @@ make_flat_bottom_edges(graph_t* g, spline_info_t* sp, path * P, edge_t ** edges,
 
        pointf *ps = NULL;
        int pn = 0;
-       if (splines) ps = routesplines(P, &pn);
+       if (use_splines) ps = routesplines(P, &pn);
        else ps = routepolylines(P, &pn);
        if (pn == 0) {
            free(ps);