changeset 1684:95396c9382e3 single-point

m_haveExtents should be true when extents are set explicitly, otherwise they'll get overridden when a point is added
author Chris Cannam
date Wed, 03 Apr 2019 16:04:03 +0100
parents e4f31f506116
children 0e9840a381b5
files data/model/RegionModel.h data/model/SparseTimeValueModel.h
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/data/model/RegionModel.h	Wed Apr 03 16:03:39 2019 +0100
+++ b/data/model/RegionModel.h	Wed Apr 03 16:04:03 2019 +0100
@@ -63,7 +63,7 @@
         m_resolution(resolution),
         m_valueMinimum(valueMinimum),
         m_valueMaximum(valueMaximum),
-        m_haveExtents(false),
+        m_haveExtents(true),
         m_valueQuantization(0),
         m_haveDistinctValues(false),
         m_notifier(this,
--- a/data/model/SparseTimeValueModel.h	Wed Apr 03 16:03:39 2019 +0100
+++ b/data/model/SparseTimeValueModel.h	Wed Apr 03 16:04:03 2019 +0100
@@ -64,7 +64,7 @@
         m_resolution(resolution),
         m_valueMinimum(valueMinimum),
         m_valueMaximum(valueMaximum),
-        m_haveExtents(false),
+        m_haveExtents(true),
         m_haveTextLabels(false),
         m_notifier(this,
                    notifyOnAdd ?