a2a63c32665b60fedfddd190c68500d912e1c1bc
braney
  Thu Jan 16 14:43:17 2025 -0800
fix a bug with bigChains that are loaded on a native database. refs #35037

diff --git src/hg/hgTracks/chainTrack.c src/hg/hgTracks/chainTrack.c
index ba4cf86..b22fff22 100644
--- src/hg/hgTracks/chainTrack.c
+++ src/hg/hgTracks/chainTrack.c
@@ -212,31 +212,31 @@
 	lmAllocVar(lm, sf);
 	sf->start = lf->start;
 	sf->end = lf->end;
 	sf->grayIx = lf->grayIx;
 	lf->components = sf;
 	}
 #endif /* OLD */
     }
 
 /* if some chains are actually loaded */
 if (hash->elCount) 
     {
     boolean isSplit = TRUE;
     /* Make up range query. */
     safef(fullName, sizeof fullName, "%s_%s", chromName, tg->table);
-    if (isHubTrack(tg->table) || !hTableExists(database, fullName))
+    if (tg->isBigBed || !hTableExists(database, fullName))
 	{
 	strcpy(fullName, tg->table);
 	isSplit = FALSE;
 	}
 
     /* in dense mode we don't draw the lines
      * so we don't need items off the screen
      */
     if (vis == tvDense)
 	queryFunc(closure, fullName, lm,  hash, seqStart, seqEnd, NULL, isSplit);
     else
 	{
 	/* if chains extend beyond edge of window we need to get
 	 * elements that are off the screen
 	 * in both directions so we know whether to draw