]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
add fields to XAO import results
authorfps <fps@opencascade.com>
Thu, 14 Nov 2013 14:11:58 +0000 (14:11 +0000)
committerfps <fps@opencascade.com>
Thu, 14 Nov 2013 14:11:58 +0000 (14:11 +0000)
src/GEOM_I/GEOM_IInsertOperations_i.cc

index 217655cf6122d4c7049d3ebd1664c5f47c2caddf..f54c27b582df8f021ce555f07da20a6a2e26f8a2 100644 (file)
@@ -471,8 +471,8 @@ CORBA::Boolean GEOM_IInsertOperations_i::ImportXAO(const char* fileName,
   fields->length(n);
   for (int i = 1; i <= n; i++)
   {
-      // TODO: FPS
-      //(*fields)[i - 1] = GetObject(Handle(GEOM_Field)::DownCast(importedFields->Value(i)));
+        (*fields)[i - 1] = GEOM::GEOM_Field::_narrow(
+                GetBaseObject(Handle(GEOM_Field)::DownCast(importedFields->Value(i))));
   }
   
   shape = GetObject(hshape);