diff data/model/Model.h @ 1072:882d448c8a6d

Fix #1222 CSV export of time-instants layer omits last point
author Chris Cannam
date Fri, 15 May 2015 09:15:57 +0100
parents 0fd3661bcfff
children 4d9816ba0ebe
line wrap: on
line diff
--- a/data/model/Model.h	Thu May 14 14:04:41 2015 +0100
+++ b/data/model/Model.h	Fri May 15 09:15:57 2015 +0100
@@ -220,10 +220,12 @@
                        QString extraAttributes = "") const;
 
     virtual QString toDelimitedDataString(QString delimiter) const {
-        return toDelimitedDataStringSubset(delimiter, getStartFrame(), getEndFrame());
+        return toDelimitedDataStringSubset
+            (delimiter, getStartFrame(), getEndFrame() + 1);
     }
     virtual QString toDelimitedDataStringWithOptions(QString delimiter, DataExportOptions opts) const {
-        return toDelimitedDataStringSubsetWithOptions(delimiter, opts, getStartFrame(), getEndFrame());
+        return toDelimitedDataStringSubsetWithOptions
+            (delimiter, opts, getStartFrame(), getEndFrame() + 1);
     }
     virtual QString toDelimitedDataStringSubset(QString, sv_frame_t /* f0 */, sv_frame_t /* f1 */) const {
         return "";