changeset 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 98898331dc2a
files data/fileio/CSVFileReader.cpp data/fileio/CSVFileReader.h data/fileio/CSVFileWriter.cpp data/model/SparseModel.h
diffstat 4 files changed, 4 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/data/fileio/CSVFileReader.cpp	Thu Aug 20 14:54:21 2015 +0100
+++ b/data/fileio/CSVFileReader.cpp	Thu Aug 20 15:33:13 2015 +0100
@@ -31,7 +31,6 @@
 #include <QRegExp>
 #include <QStringList>
 #include <QTextStream>
-#include <QIODevice>
 
 #include <iostream>
 #include <map>
--- a/data/fileio/CSVFileReader.h	Thu Aug 20 14:54:21 2015 +0100
+++ b/data/fileio/CSVFileReader.h	Thu Aug 20 15:33:13 2015 +0100
@@ -27,7 +27,6 @@
 #include <QIODevice>
 
 class QFile;
-class QIODevice;
 
 class CSVFileReader : public DataFileReader
 {
--- a/data/fileio/CSVFileWriter.cpp	Thu Aug 20 14:54:21 2015 +0100
+++ b/data/fileio/CSVFileWriter.cpp	Thu Aug 20 15:33:13 2015 +0100
@@ -68,7 +68,7 @@
                 .arg(temp.getTemporaryFilename());
             return;
         }
-
+    
         QTextStream out(&file);
         out << m_model->toDelimitedDataStringWithOptions
             (m_delimiter, m_options);
--- 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;