Commit 2f0528b3 authored by Eric Stanton's avatar Eric Stanton
Browse files

BUG: When the underlying table model has no vertical header, return the row...

BUG: When the underlying table model has no vertical header, return the row index. TODO: Make this an option in the class.
parent ab9b61ea
......@@ -118,8 +118,9 @@ QVariant vtkQtChartTableSeriesModel::getSeriesValue(int series, int index,
{
if(component == 0)
{
return this->Model->headerData(index,
QVariant value = this->Model->headerData(index,
this->ColumnsAsSeries ? Qt::Vertical : Qt::Horizontal);
return value.isValid() ? value : index;
}
else
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment