src/hg/phyloGif/phyloGif.c 1.19
1.19 2009/06/24 01:48:57 galt
make sure leafs have labels
Index: src/hg/phyloGif/phyloGif.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/phyloGif/phyloGif.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -b -B -U 4 -r1.18 -r1.19
--- src/hg/phyloGif/phyloGif.c 3 Sep 2008 19:20:54 -0000 1.18
+++ src/hg/phyloGif/phyloGif.c 24 Jun 2009 01:48:57 -0000 1.19
@@ -206,8 +206,16 @@
double factor=0.0;
this->depth=0;
this->vPos=*pNumLeafs;
(*pNumLeafs)++;
+
+ if(!phyloTree->ident->name)
+ {
+ safef(layoutErrMsg,sizeof(layoutErrMsg),
+ "leaf is missing label\n");
+ return;
+ }
+
/* de-escape name if needed */
if(stringIn(escapePattern,phyloTree->ident->name))
{
char *temp = phyloTree->ident->name;