src/hg/lib/hui.c 1.232
1.232 2009/08/19 23:19:12 tdreszer
Missing 'else' caused Gencode level filter to duplicate entries.
Index: src/hg/lib/hui.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/lib/hui.c,v
retrieving revision 1.231
retrieving revision 1.232
diff -b -B -U 4 -r1.231 -r1.232
--- src/hg/lib/hui.c 19 Aug 2009 19:32:44 -0000 1.231
+++ src/hg/lib/hui.c 19 Aug 2009 23:19:12 -0000 1.232
@@ -2661,9 +2661,9 @@
printf("<OPTION%s value=%s>%s</OPTION>\n",(filterBy->slChoices != NULL && slNameInList(filterBy->slChoices,varName)?" SELECTED":""),varName,name);
freeMem(name);
}
}
- if(filterBy->valueAndLabel)
+ else if(filterBy->valueAndLabel)
{
for(slValue=filterBy->slValues;slValue!=NULL;slValue=slValue->next)
printf("<OPTION%s value=%s>%s</OPTION>\n",(filterBy->slChoices != NULL && slNameInList(filterBy->slChoices,slValue->name)?" SELECTED":""),slValue->name,slValue->name+strlen(slValue->name)+1);
}