d53ed452c3f8c0e0b47c33b6f74ac79da1e66577 braney Thu Oct 20 14:42:51 2011 -0700 make code use loaded items from bigBeds, even if in dense mode. #418 diff --git src/hg/hgTracks/simpleTracks.c src/hg/hgTracks/simpleTracks.c index 1502f60..630984f 100644 --- src/hg/hgTracks/simpleTracks.c +++ src/hg/hgTracks/simpleTracks.c @@ -3221,31 +3221,31 @@ /* Draw linked features items. */ { clearColorBin(); if (vis == tvDense && tg->colorShades) slSort(&tg->items, cmpLfsWhiteToBlack); genericDrawItems(tg, seqStart, seqEnd, hvg, xOff, yOff, width, font, color, vis); } void linkedFeaturesDraw(struct track *tg, int seqStart, int seqEnd, struct hvGfx *hvg, int xOff, int yOff, int width, MgFont *font, Color color, enum trackVisibility vis) /* Draw linked features items. */ { clearColorBin(); -if (vis == tvDense && canDrawBigBedDense(tg)) +if (tg->items == NULL && vis == tvDense && canDrawBigBedDense(tg)) { bigBedDrawDense(tg, seqStart, seqEnd, hvg, xOff, yOff, width, font, color); } else { if (vis == tvDense && tg->colorShades) slSort(&tg->items, cmpLfWhiteToBlack); genericDrawItems(tg, seqStart, seqEnd, hvg, xOff, yOff, width, font, color, vis); } } void incRange(UBYTE *start, int size) /* Add one to range of bytes, taking care to not overflow. */ {