Skip to content
Snippets Groups Projects
Commit 1ee06054 authored by Antoine Regimbeau's avatar Antoine Regimbeau
Browse files

COMP: add dynamic cast to object list method GetNthDataObject

parent be3e3fb1
No related branches found
No related tags found
1 merge request!22Register Pipeline Services (ProcessObjects and DataObjects)
......@@ -168,7 +168,8 @@ typename ObjectList<TObject>::Superclass *
ObjectList<TObject>
::GetNthDataObject(unsigned int index) const
{
return GetNthElement(index).GetPointer();
return dynamic_cast<itk::DataObject *> ( GetNthElement(index).GetPointer() );
}
/**
......
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