]> granicus.if.org Git - graphviz/commitdiff
fix b1255 - using fixedsize values
authorellson <devnull@localhost>
Mon, 24 Dec 2007 04:50:36 +0000 (04:50 +0000)
committerellson <devnull@localhost>
Mon, 24 Dec 2007 04:50:36 +0000 (04:50 +0000)
lib/common/shapes.c

index be393827fe0201b20ca57963f16900858a87bce5..9a664d9cda40be59f79b34ae9dd82ca7c2f2fa7e 100644 (file)
@@ -736,7 +736,8 @@ static void poly_init(node_t * n)
            agerr(AGWARN,
                  "node '%s', graph '%s' size too small for label\n",
                  n->name, n->graph->name);
-       dimen.x = dimen.y = 0;
+       dimen.x = width;
+       dimen.y = height;
     }
     else {
        dimen.x = MAX(dimen.x, imagesize.x+2);