Skip to content

Commit

Permalink
BUG: Fix incorrect error message in vtkMRMLColorTableNode
Browse files Browse the repository at this point in the history
Typo in error message makes debugging more difficult
  • Loading branch information
pieper authored and jcfr committed Dec 12, 2022
1 parent 92cadfb commit 6dfe09c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Libs/MRML/Core/vtkMRMLColorTableNode.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1447,7 +1447,7 @@ bool vtkMRMLColorTableNode::GetColor(int entry, double color[4])
{
if (entry < 0 || entry >= this->GetNumberOfColors())
{
vtkErrorMacro( "vtkMRMLColorTableNode::SetColor: requested entry " << entry << " is out of table range: 0 - " << this->GetLookupTable()->GetNumberOfTableValues() << ", call SetNumberOfColors" << endl);
vtkErrorMacro( "vtkMRMLColorTableNode::GetColor: requested entry " << entry << " is out of table range: 0 - " << this->GetLookupTable()->GetNumberOfTableValues() << ", call SetNumberOfColors" << endl);
return false;
}
this->GetLookupTable()->GetTableValue(entry, color);
Expand Down

0 comments on commit 6dfe09c

Please sign in to comment.