0d2757e19a4ea5280be67b8d3edcfd67ab4d01c7 braney Tue Aug 29 17:05:17 2017 -0700 more updates to hgCollection diff --git src/hg/hgTracks/wigTrack.c src/hg/hgTracks/wigTrack.c index fabbf13..ee5714c 100644 --- src/hg/hgTracks/wigTrack.c +++ src/hg/hgTracks/wigTrack.c @@ -426,30 +426,38 @@ char *dbTableName = NULL; struct trackDb *tdb = NULL; int loadStart = winStart, loadEnd = winEnd; #ifndef GBROWSE struct customTrack *ct = NULL; /* custom tracks have different database */ if (isCustomTrack(tg->table) && tg->customPt) { hFreeConn(&conn); conn = hAllocConn(CUSTOM_TRASH); ct = tg->customPt; dbTableName = ct->dbTableName; tdb = ct->tdb; } +else if (isCustomTrack(tg->table) ) + { + // we can get custom tracks through track hubs that don't have customPt + hFreeConn(&conn); + conn = hAllocConn(CUSTOM_TRASH); + dbTableName = trackDbSetting(tg->tdb, "dbTableName"); + tdb = tg->tdb; + } else #endif /* GBROWSE */ { dbTableName = tg->table; tdb = tg->tdb; } /* Allocate trackSpans one time only */ if (! trackSpans) trackSpans = newHash(0); /* find the minimum span to see if there are actually any data * points in this area at that span. If there are not, then there * is no data here even if a zoomed view covers this section. * protect against less than 1 with the max(1,minSpan());