Commit 5f8d1d03 authored by alexy's avatar alexy
Browse files

BUG 2783. Replaced _ with spaces in color names on reading external files.

git-svn-id: http://svn.slicer.org/Slicer4/trunk@21517 3bd1e089-480b-0410-8dfb-8563597acbee
parent 0c653c0a
...@@ -201,6 +201,7 @@ int vtkMRMLColorTableStorageNode::ReadDataInternal(vtkMRMLNode *refNode) ...@@ -201,6 +201,7 @@ int vtkMRMLColorTableStorageNode::ReadDataInternal(vtkMRMLNode *refNode)
colorNode->EndModify(wasModifying); colorNode->EndModify(wasModifying);
return 0; return 0;
} }
colorNode->SetColorNameWithSpaces(id, name.c_str(), "_");
} }
if (lines.size() > 0 && !biggerThanOne) if (lines.size() > 0 && !biggerThanOne)
{ {
......
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