From 84bd66d68c4215fe9d6e47e4282009191f311c86 Mon Sep 17 00:00:00 2001 From: Mark Watkins Date: Sun, 7 Aug 2011 09:55:51 +1000 Subject: [PATCH] Minz<0 fix --- Graphs/gLineChart.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Graphs/gLineChart.cpp b/Graphs/gLineChart.cpp index 198eb6c1..562bc339 100644 --- a/Graphs/gLineChart.cpp +++ b/Graphs/gLineChart.cpp @@ -230,10 +230,10 @@ void gLineChart::Plot(gGraphWindow & w,float scrx,float scry) if (minx>x0) { double j=minx-x0; // == starting min of first sample in this segment idx=(j/sr); - idx/=(sam*num_averages); - idx*=(sam*num_averages); + //idx/=(sam*num_averages); + //idx*=(sam*num_averages); // Loose the precision - //idx+=sam-(idx % sam); + idx+=sam-(idx % sam); } // else just start from the beginning }