Index: src/hg/hgTracks/wigTrack.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/hgTracks/wigTrack.c,v
retrieving revision 1.102
retrieving revision 1.103
diff -b -B -U 4 -r1.102 -r1.103
--- src/hg/hgTracks/wigTrack.c	30 Mar 2010 21:44:53 -0000	1.102
+++ src/hg/hgTracks/wigTrack.c	6 Apr 2010 18:25:16 -0000	1.103
@@ -720,9 +720,8 @@
 	    } else {
 	    *graphUpperLimit = 1.0;
 	    *graphLowerLimit = -1.0;
 	    }
-	    graphRange = *graphUpperLimit - *graphLowerLimit;
 	} else {
 	*graphUpperLimit = *overallUpperLimit;
 	*graphLowerLimit = *overallLowerLimit;
 	}
@@ -843,8 +842,10 @@
 		{
 		if (whiskers)
 		    {
 		    int zeroPos = scaleHeightToPixels(0);
+		    if (zeroPos < 0)
+			zeroPos = 0;
 		    int scaledVal = scaleHeightToPixels(dataValue);
 		    double std = calcStdFromSums(p->sumData, p->sumSquares, p->count);
 		    if (dataValue < 0)
 		        {

