From 5c14453c5d013effa461a857ed29df8bfe70e193 Mon Sep 17 00:00:00 2001 From: Dhanya Maliakal Date: Fri, 13 Mar 2015 11:20:00 +0100 Subject: [PATCH] fixed histogram issues --- slsDetectorGui/src/qDrawPlot.cpp | 8 ++++---- slsDetectorGui/src/qTabPlot.cpp | 2 -- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/slsDetectorGui/src/qDrawPlot.cpp b/slsDetectorGui/src/qDrawPlot.cpp index 43d4d14c1..97aa90ed8 100644 --- a/slsDetectorGui/src/qDrawPlot.cpp +++ b/slsDetectorGui/src/qDrawPlot.cpp @@ -595,10 +595,10 @@ void qDrawPlot::SetScanArgument(int scanArg){ //histogram if(histogram){ int iloop = 0; - int numSteps = ((histTo-histFrom)/(histSize)) + 1; + int numSteps = ((histTo-histFrom)/(histSize)) + 1;cout<<"numSteps:"<values[i] < histFrom) || (data->values[i] >= histTo)) + if ((data->values[i] < histFrom) || (data->values[i] > histTo)) continue; //check for intervals, increment if validates for(int j=0;j