Skip to content
Snippets Groups Projects
Commit e83b81a4 authored by Joachim Pouderoux's avatar Joachim Pouderoux Committed by Code Review
Browse files

Merge topic 'FixPlotBagTernaryOperatorIssue' into master

a2d8d416 Fix potential compiler error with ternary operator.
parents ff3025cc a2d8d416
No related branches found
No related tags found
No related merge requests found
......@@ -371,8 +371,14 @@ vtkStdString vtkPlotBag::GetTooltipLabel(const vtkVector2d &plotPos,
vtkAbstractArray *colName = vtkAbstractArray::SafeDownCast(
this->GetInput()->GetColumnByName("ColName"));
std::stringstream ss;
ss << (!colName ? "?" :
colName->GetVariantValue(seriesIndex).ToString());
if (colName)
{
ss << colName->GetVariantValue(seriesIndex).ToString();
}
else
{
ss << "?";
}
tooltipLabel += ss.str();
}
break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment