73ad96081dbe773719185e4c95aeb3565e523362
braney
  Fri Jan 7 12:02:50 2011 -0800
fix bug #2362
diff --git src/hg/hgTracks/cds.h src/hg/hgTracks/cds.h
index 37f7c3c..e6f3ebf 100644
--- src/hg/hgTracks/cds.h
+++ src/hg/hgTracks/cds.h
@@ -104,30 +104,31 @@
 /* Given an lf and the psl from which the lf was constructed, 
  * return a list of simpleFeature elements, one per codon (or partial 
  * codon if the codon falls on a gap boundary.  sizeMul, isXeno and maxShade
  * are for defaulting to one-simpleFeature-per-exon if cds is not found. */
 
 
 INLINE boolean baseColorCanDraw(struct track *tg)
 /* baseColor uses tg->drawItems as a proxy for type of tg->items, which must be 
  * linkedFeatures or linkedFeaturesSeries.  Return TRUE if tg->drawItems
  * implies that tg->items is linkedFeatures or linkedFeaturesSeries, and from
  * a subtype supported by the baseColor code. */
 {
 return (tg->drawItems == linkedFeaturesDraw || tg->drawItems == linkedFeaturesAverageDense ||
 	tg->drawItems == linkedFeaturesAverageDenseOrientEst ||
 	tg->drawItems == linkedFeaturesSeriesDraw ||
+	tg->drawItems == bamLinkedFeaturesDraw ||
 	tg->drawItems == bamLinkedFeaturesSeriesDraw);
 
 }
 
 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, but note that this should be called only if
  * baseColorCanDraw(tg) (above). */
 
 enum baseColorDrawOpt baseColorDrawSetup(struct hvGfx *hvg, struct track *tg,
 			struct linkedFeatures *lf,
 			struct dnaSeq **retMrnaSeq, struct psl **retPsl);
 /* Returns the CDS coloring option, allocates colors if necessary, and 
  * returns the sequence and psl record for the given item if applicable.