From 94f853d65b6d57c5fb9d7c2b998cf073b0a79151 Mon Sep 17 00:00:00 2001 From: Mark Watkins Date: Sat, 30 Jul 2011 15:45:14 +1000 Subject: [PATCH] LineChart weirdness attempt 2 --- Graphs/gLineChart.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Graphs/gLineChart.cpp b/Graphs/gLineChart.cpp index 6cd532b9..43cb73ac 100644 --- a/Graphs/gLineChart.cpp +++ b/Graphs/gLineChart.cpp @@ -75,7 +75,7 @@ void gLineChart::Plot(gGraphWindow & w,float scrx,float scry) } double xx=maxx-minx, yy=maxy-miny; - float xmult=width/xx, ymult=(height)/yy; // time to pixel conversion multiplier + EventDataType xmult=double(width)/xx, ymult=double(height)/yy; // time to pixel conversion multiplier // Return on screwy min/max conditions if ((xx<0) || (yy<0)) @@ -236,7 +236,7 @@ void gLineChart::Plot(gGraphWindow & w,float scrx,float scry) EventDataType data; EventDataType gain=el.gain(); EventDataType nmult=ymult*gain; - EventDataType ymin=miny/gain; + EventDataType ymin=EventDataType(miny)/EventDataType(gain); const vector & dat=el.getData(); const vector & tim=el.getTime();