0027104: DownCast() cannot return null for mismatched handle
[occt.git] / src / IGESSelect / IGESSelect.cxx
index 759ad05..6ce0302 100644 (file)
@@ -41,7 +41,7 @@ Standard_Integer  IGESSelect::WhatIges
   (const Handle(IGESData_IGESEntity)& ent, const Interface_Graph& G,
    Handle(IGESData_IGESEntity)& /* sup */, Standard_Integer& /* index */)
 {
-  DeclareAndCast(IGESData_IGESEntity,igesent,ent);
+  Handle(IGESData_IGESEntity) igesent = ent;
   if (igesent.IsNull()) return Standard_False;
 //  Standard_Integer igt = igesent->TypeNumber();
   DeclareAndCast(IGESData_IGESModel,model,G.Model());