src/hg/hgTracks/cds.c 1.92

1.92 2009/04/07 17:31:01 angie
Don't call drawCdsDiffCodonsOnly if lf->codons is NULL. (not sure how this was prevented before my recent mods to pslTrack.c, simpleTracks.c and cds.c)
Index: src/hg/hgTracks/cds.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/hgTracks/cds.c,v
retrieving revision 1.91
retrieving revision 1.92
diff -b -B -U 4 -r1.91 -r1.92
--- src/hg/hgTracks/cds.c	1 Apr 2009 01:33:18 -0000	1.91
+++ src/hg/hgTracks/cds.c	7 Apr 2009 17:31:01 -0000	1.92
@@ -1461,9 +1461,9 @@
 if ((showDiffBasesMaxZoom >= 0.0)
     && ((basesPerPixel > showDiffBasesMaxZoom) || (showDiffBasesMaxZoom == 0.0)))
     enabled = FALSE;
 
-if (drawOpt == baseColorDrawDiffCodons && !zoomedToCdsColorLevel && enabled)
+if (drawOpt == baseColorDrawDiffCodons && !zoomedToCdsColorLevel && lf->codons && enabled)
     {
     drawCdsDiffCodonsOnly(tg, lf, hvg, xOff, y, scale,
 			  heightPer, mrnaSeq, psl, winStart);
     }