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