Commit 549ead9f authored by Jason Shepherd's avatar Jason Shepherd
Browse files

ENH: Add support for adding a unicode string array as a blank row in vtkTable.

parent c87ef9f5
......@@ -35,7 +35,7 @@
// Standard functions
//
vtkCxxRevisionMacro(vtkTable, "1.23");
vtkCxxRevisionMacro(vtkTable, "1.24");
vtkStandardNewMacro(vtkTable);
vtkCxxSetObjectMacro(vtkTable, RowData, vtkDataSetAttributes);
......@@ -250,6 +250,15 @@ vtkIdType vtkTable::InsertNextBlankRow()
data->InsertNextValue(vtkVariant());
}
}
else if (vtkUnicodeStringArray::SafeDownCast(arr))
{
// vtkErrorMacro(<< "vtkUnicodeStringArray is not supported for InsertNextBlankRow");
vtkUnicodeStringArray* data = vtkUnicodeStringArray::SafeDownCast(arr);
for (int j = 0; j < comps; j++)
{
data->InsertNextValue(vtkUnicodeString::from_utf8(""));
}
}
else
{
vtkErrorMacro(<< "Unsupported array type for InsertNextBlankRow");
......
Supports Markdown
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