Skip to content

Commit

Permalink
Fix an annoying warning when marshalling a vtkImageData.
Browse files Browse the repository at this point in the history
Reverse the IsA test because dobj is a vtkStructuredPoints
and object a vtkImageData.
  • Loading branch information
Joachim Pouderoux committed Jan 12, 2017
1 parent f541a4a commit 6aca3cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Parallel/Core/vtkCommunicator.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,7 @@ int vtkCommunicator::UnMarshalDataObject(vtkCharArray *buffer, vtkDataObject *ob
vtkSmartPointer<vtkDataObject> dobj = vtkCommunicator::UnMarshalDataObject(buffer);
if (dobj)
{
if (!object->IsA(dobj->GetClassName()))
if (!dobj->IsA(object->GetClassName()))
{
vtkGenericWarningMacro("Type mismatch while unmarshalling data.");
}
Expand Down

0 comments on commit 6aca3cd

Please sign in to comment.