29715a79be6ebcf63cc449fb4eece3c1543a1ea9 larrym Thu May 17 18:23:02 2012 -0700 show bigBed items in color when in dense (really fix #7272) diff --git src/hg/hgTracks/bigBedTrack.c src/hg/hgTracks/bigBedTrack.c index 25bcf2a..7920d0d 100644 --- src/hg/hgTracks/bigBedTrack.c +++ src/hg/hgTracks/bigBedTrack.c @@ -42,31 +42,31 @@ bbi = track->bbiFile = bigBedFileOpen(fileName); } return bbi; } struct bigBedInterval *bigBedSelectRange(struct track *track, char *chrom, int start, int end, struct lm *lm) /* Return list of intervals in range. */ { struct bigBedInterval *result = NULL; /* protect against temporary network error */ struct errCatch *errCatch = errCatchNew(); if (errCatchStart(errCatch)) { struct bbiFile *bbi = fetchBbiForTrack(track); - if (actualVisibility(track) != tvDense) + if (!(track->limitedVisSet && track->limitedVis == tvDense)) { int maxItems = maximumTrackItems(track) + 1; result = bigBedIntervalQuery(bbi, chrom, start, end, maxItems, lm); if (slCount(result) >= maxItems) { track->limitedVis = tvDense; track->limitedVisSet = TRUE; result = NULL; } } if (actualVisibility(track) == tvDense) { AllocArray(track->summary, insideWidth); if (bigBedSummaryArrayExtended(bbi, chrom, start, end, insideWidth, track->summary)) {