mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[apps/graph/values_controller] Fix absoluteColumnForValuesColumn
Abscissa columns that should not appear in the table were counted
This commit is contained in:
committed by
EmilieNumworks
parent
b846308866
commit
3677e7b191
@@ -255,9 +255,10 @@ int ValuesController::absoluteColumnForValuesColumn(int column) {
|
||||
int valuesColumns = 0;
|
||||
int plotTypeIndex = 0;
|
||||
do {
|
||||
abscissaColumns++;
|
||||
assert(plotTypeIndex < Shared::ContinuousFunction::k_numberOfPlotTypes);
|
||||
valuesColumns += m_numberOfValuesColumnsForType[plotTypeIndex++];
|
||||
const int numberOfValuesColumnsForType = m_numberOfValuesColumnsForType[plotTypeIndex++];
|
||||
valuesColumns += numberOfValuesColumnsForType;
|
||||
abscissaColumns += (numberOfValuesColumnsForType > 0);
|
||||
} while (valuesColumns <= column);
|
||||
return column + abscissaColumns;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user