Skip to content
Snippets Groups Projects
Commit d2a8bf26 authored by David Gobbi's avatar David Gobbi
Browse files

Fix c++20 compile error in vtkPlotBag

The error was generated by Visual Studio 2022 /std:c++20:
error C2445: result type of conditional expression is ambiguous:
types 'vtkStdString' and 'const char [2]' can be converted to
multiple common types
parent 550a7e3e
No related branches found
No related tags found
No related merge requests found
......@@ -326,7 +326,7 @@ vtkStdString vtkPlotBag::GetTooltipLabel(
tooltipLabel += this->GetNumber(plotPos.GetY(), this->YAxis);
break;
case 'z':
tooltipLabel += density ? density->GetVariantValue(seriesIndex).ToString() : "?";
tooltipLabel += density ? density->GetVariantValue(seriesIndex).ToString().c_str() : "?";
break;
case 'i':
if (this->IndexedLabels && seriesIndex >= 0 &&
......
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