src/hg/hgTables/bigBed.c 1.11

1.11 2010/05/21 23:45:38 braney
only print out the item count on bigBed's after version 2 when the value is valid
Index: src/hg/hgTables/bigBed.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/hgTables/bigBed.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -b -B -U 4 -r1.10 -r1.11
--- src/hg/hgTables/bigBed.c	18 May 2010 22:14:42 -0000	1.10
+++ src/hg/hgTables/bigBed.c	21 May 2010 23:45:38 -0000	1.11
@@ -598,10 +598,13 @@
 
 hPrintf("<B>Database:</B> %s", database);
 hPrintf("&nbsp;&nbsp;&nbsp;&nbsp;<B>Primary Table:</B> %s<br>", table);
 hPrintf("<B>Big Bed File:</B> %s", fileName);
-hPrintf("&nbsp;&nbsp;&nbsp;&nbsp;<B>Item Count:</B> ");
-printLongWithCommas(stdout, bigBedItemCount(bbi));
+if (bbi->version >= 2)
+    {
+    hPrintf("&nbsp;&nbsp;&nbsp;&nbsp;<B>Item Count:</B> ");
+    printLongWithCommas(stdout, bigBedItemCount(bbi));
+    }
 hPrintf("<BR>\n");
 hPrintf("<B>Format description:</B> %s<BR>", as->comment);
 
 /* Put up table that describes fields. */