From 5c26dd04dd171112d14bfb24db96cf286566e19b Mon Sep 17 00:00:00 2001 From: Samuel Fadel Date: Tue, 9 Feb 2016 21:36:34 -0200 Subject: Slightly reworked rewinding; added values rewinding. Needs a solution to the problem of which values must be displayed and/or interpolated. Currently, whenever the user rewinds, the current error measure is displayed, regardless of what was being displayed before. This will probably be trivial to solve once we have a nice way of changing the current measure. * Also changed all OpenMP-powered for loops to use signed integers, requirements of OMP2.x (which is what MSVC supports currently) * The above change comes with a new header for utility functions --- barchart.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'barchart.cpp') diff --git a/barchart.cpp b/barchart.cpp index 70c6004..3adf441 100644 --- a/barchart.cpp +++ b/barchart.cpp @@ -105,6 +105,7 @@ void BarChart::brushItem(int item) m_brushedItem = item; emit itemBrushed(m_brushedItem); } else { + // safe comparison: we just checked for negative values if (m_values.n_elem == 0 || item > m_values.n_elem - 1) { return; } -- cgit v1.2.3