]> granicus.if.org Git - graphviz/commitdiff
Handle case when no buttons are used.
authorerg <devnull@localhost>
Wed, 27 Feb 2008 16:13:44 +0000 (16:13 +0000)
committererg <devnull@localhost>
Wed, 27 Feb 2008 16:13:44 +0000 (16:13 +0000)
cmd/smyrna/topviewdata.c

index 66d688e2e9e1485bf0f11759f9bdff92f4287579..566b2b3f5ceb9e5a35978f09e8f3d3fc0b168b01 100644 (file)
@@ -63,6 +63,8 @@ int load_host_buttons(topview* t,Agraph_t *g,glCompSet* s)
                p->color.B=0,2;
                glCompSetAddPanel(s,p);
        }
+    else return 0;
+
        for (i=0;i < btncount ; i++)
        {
                sprintf(hostbtncaption,"hostbtncaption%i",i);