]> granicus.if.org Git - graphviz/commitdiff
Finish repair of makeAddPoly function
authorerg <devnull@localhost>
Tue, 19 Aug 2008 02:07:47 +0000 (02:07 +0000)
committererg <devnull@localhost>
Tue, 19 Aug 2008 02:07:47 +0000 (02:07 +0000)
lib/neatogen/poly.c

index dba05d031aba44c6fb08f6e18161e908826d68bd..a237ac8f9e0d9cf11009f96b9d96f80a9e9aa388 100644 (file)
@@ -212,7 +212,7 @@ void makeAddPoly(Poly * pp, Agnode_t * n, float xmargin, float ymargin)
            if (streq(ND_shape(n)->name, "box"))
                pp->kind = BOX;
            else if (streq(ND_shape(n)->name, "polygon")
-                    && isBox(verts, sides))
+                    && isBox(poly->vertices, sides))
                pp->kind = BOX;
            else if ((poly->sides < 3) && poly->regular)
                pp->kind = CIRCLE;