src/hg/hgTracks/makeItemsTrack.c 1.10

1.10 2010/04/13 08:42:32 kent
Fixing extra pack-mode labels.
Index: src/hg/hgTracks/makeItemsTrack.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/hgTracks/makeItemsTrack.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -b -B -U 4 -r1.9 -r1.10
--- src/hg/hgTracks/makeItemsTrack.c	13 Apr 2010 07:02:05 -0000	1.9
+++ src/hg/hgTracks/makeItemsTrack.c	13 Apr 2010 08:42:32 -0000	1.10
@@ -180,9 +180,9 @@
 if (withCenterLabels)
     y += mgFontLineHeight(font);
 if (vis == tvDense)
     hvGfxTextRight(hvg, xOff, y, width-1, fontHeight, color, font, track->shortLabel);
-else
+else if (vis == tvFull)
     {
     struct bed *bed, *bedList = track->items;
     for (bed = bedList; bed != NULL; bed = bed->next)
 	{
@@ -193,8 +193,9 @@
 	    itemHeight, color, font, track->itemName(track, bed));
 	y += itemHeight;
 	}
     }
+/* In pack mode the draw routine takes care of the labels. */
 }
 
 
 int makeItemsTotalHeight(struct track *track, enum trackVisibility vis)