From a1a7563eadb0634d9895b6b0e63a30e2ae40fe87 2017-09-07 12:34:05 From: Alexandre Leroux Date: 2017-09-07 12:34:05 Subject: [PATCH] Updates variable attribute when data series is changing --- diff --git a/core/src/Variable/Variable.cpp b/core/src/Variable/Variable.cpp index ca1c3cb..ed9c248 100644 --- a/core/src/Variable/Variable.cpp +++ b/core/src/Variable/Variable.cpp @@ -41,8 +41,11 @@ struct Variable::VariablePrivate { m_DataSeries->purge(m_CacheRange.m_TStart, m_CacheRange.m_TEnd); } updateRealRange(); + updateNbPoints(); } + void updateNbPoints() { m_NbPoints = m_DataSeries ? m_DataSeries->nbPoints() : 0; } + /// Updates real range according to current variable range and data series void updateRealRange() {