aa3b27394f87202be3140c6c961c05f934f928ca max Thu Nov 19 03:28:16 2020 -0800 fixing bug where knownGene on hg19 didn't show up the exon number mouseover, refs #25325 diff --git src/hg/hgTracks/simpleTracks.c src/hg/hgTracks/simpleTracks.c index 794a316..e265869c 100644 --- src/hg/hgTracks/simpleTracks.c +++ src/hg/hgTracks/simpleTracks.c @@ -4071,31 +4071,31 @@ boolean nextItemCompatible(struct track *tg) /* Check to see if we draw nextPrev item buttons on a track. */ { return (withNextExonArrows && tg->nextExonButtonable && tg->nextPrevExon); } boolean exonNumberMapsCompatible(struct track *tg, enum trackVisibility vis) /* Check to see if we draw exon and intron maps labeling their number. */ { if (tg->tdb) { char *type = tg->tdb->type; if (sameString(type, "interact") || sameString(type, "bigInteract")) return FALSE; - if (sameString(type, "bigGenePred") || sameString(type, "genePred")) + if (startsWith("bigGenePred", type) || startsWith("genePred", type)) return TRUE; } boolean exonNumbers = sameString(trackDbSettingOrDefault(tg->tdb, "exonNumbers", "off"), "on"); return (withExonNumbers && exonNumbers && (vis==tvFull || vis==tvPack) && (winEnd - winStart < 400000) && (tg->nextPrevExon==linkedFeaturesNextPrevItem)); } void genericMapItem(struct track *tg, struct hvGfx *hvg, void *item, char *itemName, char *mapItemName, int start, int end, int x, int y, int width, int height) /* This is meant to be used by genericDrawItems to set to tg->mapItem in */ /* case tg->mapItem isn't set to anything already. */ { // Don't bother if we are imageV2 and a dense child. if (!theImgBox || tg->limitedVis != tvDense || !tdbIsCompositeChild(tg->tdb))