b1059660088260ba12e5eacf93d37c24707659c3 galt Fri Apr 8 00:37:40 2016 -0700 fixing gtex for multi-region. oops needs to search list for matchin ss by vis now since ss is a list. diff --git src/hg/hgTracks/gtexTracks.c src/hg/hgTracks/gtexTracks.c index caf2d99..da726b4 100644 --- src/hg/hgTracks/gtexTracks.c +++ src/hg/hgTracks/gtexTracks.c @@ -1080,31 +1080,33 @@ struct spaceSaver *ssHold; AllocVar(ssHold); struct track *tgSave = tg; for(tg=tgSave; tg; tg=tg->nextWindow) { assert(tgSave->ss->vis == tg->ss->vis); // viz matches, we have the right one spaceSaverSetRowHeights(tg->ss, ssHold, gtexGeneHeight); } // share the rowSizes data across all windows for(tg=tgSave; tg; tg=tg->nextWindow) { tg->ss->rowSizes = ssHold->rowSizes; } tg = tgSave; } - height = spaceSaverGetRowHeightsTotal(tg->ss); + struct spaceSaver *ss = findSpaceSaver(tg, vis); // ss is a list now + assert(ss); // viz matches, we have the right one + height = spaceSaverGetRowHeightsTotal(ss); } } tg->height = height; return height; } static void gtexGenePreDrawItems(struct track *tg, int seqStart, int seqEnd, struct hvGfx *hvg, int xOff, int yOff, int width, MgFont *font, Color color, enum trackVisibility vis) { if (vis == tvSquish || vis == tvDense) { // NonProp routines not relevant to these modes, and they interfere // NOTE: they must be installed by gtexGeneMethods() for pack mode