04f62177f924e36ab071aa80e784d6f31fe1fd3b
braney
  Wed Sep 7 15:32:23 2016 -0700
oops...need to init DNA in a couple of other cases

diff --git src/hg/hgTracks/cds.c src/hg/hgTracks/cds.c
index cb43a65..71880f5 100644
--- src/hg/hgTracks/cds.c
+++ src/hg/hgTracks/cds.c
@@ -1815,31 +1815,34 @@
 	    (psl->tStarts[lastBlk] + psl->blockSizes[lastBlk]);
 	drawVertLine(lf, hvg, s, xOff, y, heightPer-1, scale,
 		     cdsColor[CDS_QUERY_INSERTION_AT_END]);
 	}
     }
 }
 
 void baseColorInitTrack(struct hvGfx *hvg, struct track *tg)
 /* Set up base coloring state (e.g. cache genomic sequence) for tg.
  * This must be called by tg->drawItems if baseColorDrawSetup is used 
  * in tg->drawItemAt.  Peeks at tg->drawItems method to determine whether
  * tg is linkedFeatures or linkedFeaturesSeries (currently the only
  * two supported track types -- bed, psl etc. are subclasses of these). */
 {
 enum baseColorDrawOpt drawOpt = baseColorGetDrawOpt(tg);
-if (drawOpt <= baseColorDrawOff)
+boolean indelShowDoubleInsert, indelShowQueryInsert, indelShowPolyA;
+indelEnabled(cart, (tg ? tg->tdb : NULL), basesPerPixel,
+	     &indelShowDoubleInsert, &indelShowQueryInsert, &indelShowPolyA);
+if (drawOpt <= baseColorDrawOff && !(indelShowQueryInsert || indelShowPolyA))
     return;
 
 setGc();
 if (initedTrack == NULL || differentString(tg->track, initedTrack))
     {
     int overallStart, overallEnd;
     boolean isSeries = FALSE;
     if (tg->drawItems == linkedFeaturesSeriesDraw
         || tg->drawItems == bamLinkedFeaturesSeriesDraw)
 	isSeries = TRUE;
     else if (!baseColorCanDraw(tg))
 	errAbort("baseColorInitTrack: track %s has a type not recognized by baseColorCanDraw.",
 		 tg->track);
     getLinkedFeaturesSpan((struct linkedFeatures *)tg->items, &overallStart, &overallEnd,
 			  isSeries);