X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROData%2FHYDROData_GeomTool.cxx;h=a152909c98247f0e26f54693bd0f917b820c8ba7;hb=f86cf7ecf17dbae2a1d84e0ebbab07c732208c2f;hp=3d54e13f34e87e59f3cb4d8b03723619ca9f2f92;hpb=4af9b740c7c9dcb353e1f2508a90fb070753de5e;p=modules%2Fhydro.git diff --git a/src/HYDROData/HYDROData_GeomTool.cxx b/src/HYDROData/HYDROData_GeomTool.cxx index 3d54e13f..a152909c 100644 --- a/src/HYDROData/HYDROData_GeomTool.cxx +++ b/src/HYDROData/HYDROData_GeomTool.cxx @@ -197,7 +197,12 @@ GEOM::GEOM_Object_ptr HYDROData_GeomTool::ExplodeShapeInGEOMandPublish( GEOM::GE } for (size_t i = 0; i < aFc->length(); i++) - GEOMBase::PublishSubObject(aFc->operator[](i), Names[i]); + { + std::string name = Names[i].toStdString(); + GEOM::GEOM_Object_ptr anObj = aFc->operator[](i); + //GEOMBase::PublishSubObject( anObj, name.c_str() ); + theGeomEngine->AddInStudy( theStudy, anObj, name.c_str(), aGeomObj ); + } return aGeomObj; }