diff data/model/SparseModel.h @ 1119:e22bfe8ca248 tonioni

fixes the problem that the last note was not exported to csv
author Matthias Mauch <mail@matthiasmauch.net>
date Fri, 14 Aug 2015 18:16:14 +0100
parents 9fc8823a73e9
children 39019ce29178
line wrap: on
line diff
--- a/data/model/SparseModel.h	Mon Apr 13 13:52:05 2015 +0100
+++ b/data/model/SparseModel.h	Fri Aug 14 18:16:14 2015 +0100
@@ -173,7 +173,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";
                 }
             }
@@ -551,8 +551,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;