[apps/graph] ValuesController: add comments

This commit is contained in:
Émilie Feral
2019-09-24 16:28:01 +02:00
committed by LeaNumworks
parent 38eaf9b051
commit b91ea42286
2 changed files with 3 additions and 0 deletions

View File

@@ -265,6 +265,7 @@ void ValuesController::updateNumberOfColumns() const {
}
m_numberOfColumns = 0;
for (int plotTypeIndex = 0; plotTypeIndex < ContinuousFunction::k_numberOfPlotTypes; plotTypeIndex++) {
// Count abscissa column if the sub table does exist
m_numberOfColumnsForType[plotTypeIndex] += (m_numberOfColumnsForType[plotTypeIndex] > 0);
m_numberOfColumns += m_numberOfColumnsForType[plotTypeIndex];
}