File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -143,7 +143,7 @@ void GraphGenerator::generateGraphsTYvoltage( PPresult *result ) {
143143 graphVoltage.clear (); // remove all previous dots and fill in new trace as GL_LINE_STRIP
144144 graphHistogram.clear (); // remove all previous line and fill in new histo as GL_LINES
145145 unsigned bins[ int ( binsPerDiv * DIVS_VOLTAGE ) ] = { 0 };
146- for ( unsigned int position = unsigned ( leftmostPosition ); position < dotsOnScreen && sampleIterator < sampleEnd;
146+ for ( unsigned int position = unsigned ( leftmostPosition ); position < dotsOnScreen && sampleIterator < sampleEnd - 1 ;
147147 ++position ) {
148148 double x = double ( MARGIN_LEFT + position * horizontalFactor );
149149 double y_1 = *sampleIterator++ / gain + offset;
You can’t perform that action at this time.
0 commit comments