From: erg <devnull@localhost>
Date: Wed, 27 Feb 2008 16:13:44 +0000 (+0000)
Subject: Handle case when no buttons are used.
X-Git-Tag: LAST_LIBGRAPH~32^2~4661
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6a3f5128d042b8bcb555cf9849b2899ac9615fd8;p=graphviz

Handle case when no buttons are used.
---

diff --git a/cmd/smyrna/topviewdata.c b/cmd/smyrna/topviewdata.c
index 66d688e2e..566b2b3f5 100644
--- a/cmd/smyrna/topviewdata.c
+++ b/cmd/smyrna/topviewdata.c
@@ -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);