Mercurial > hg > svcore
diff data/model/SparseModel.h @ 1127:815f82508f96 tony-2.0-integration
Back out Matthias's e22bfe8ca248 in the hope that my (earlier but on a different branch, and now merged) fix 882d448c8a6d will do the right thing
author | Chris Cannam |
---|---|
date | Thu, 20 Aug 2015 15:33:13 +0100 |
parents | 39019ce29178 |
children | f80773b5ec96 6b847a59d908 |
line wrap: on
line diff
--- a/data/model/SparseModel.h Thu Aug 20 14:54:21 2015 +0100 +++ b/data/model/SparseModel.h Thu Aug 20 15:33:13 2015 +0100 @@ -181,7 +181,7 @@ } else { QString s; for (PointListConstIterator i = m_points.begin(); i != m_points.end(); ++i) { - if (i->frame >= f0 && i->frame <= f1) { + if (i->frame >= f0 && i->frame < f1) { s += i->toDelimitedDataString(delimiter, opts, m_sampleRate) + "\n"; } } @@ -559,8 +559,8 @@ QMutexLocker locker(&m_mutex); sv_frame_t f = 0; if (!m_points.empty()) { - PointListConstIterator i(m_points.end()); - f = (--i)->frame; + PointListConstIterator i(m_points.end()); + f = (--i)->frame; } if (m_extendTo > f) return m_extendTo; else return f;