From: adv Date: Mon, 11 Nov 2013 05:26:30 +0000 (+0000) Subject: Minor changes. X-Git-Tag: BR_hydro_v_0_3~26 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=a77c14d80e6a41d0ac8979273d4696f9ffde626a;p=modules%2Fhydro.git Minor changes. --- diff --git a/src/HYDROGUI/HYDROGUI_Tool.cxx b/src/HYDROGUI/HYDROGUI_Tool.cxx index cf877cb3..fc1b7e5e 100644 --- a/src/HYDROGUI/HYDROGUI_Tool.cxx +++ b/src/HYDROGUI/HYDROGUI_Tool.cxx @@ -299,11 +299,13 @@ Handle(HYDROData_Entity) HYDROGUI_Tool::GetSelectedObject( HYDROGUI_Module* theM } HYDROData_SequenceOfObjects HYDROGUI_Tool::GetGeometryObjects( - const Handle(HYDROData_Document)& theDoc ) + HYDROGUI_Module* theModule ) { + Handle(HYDROData_Document) aDocument = HYDROData_Document::Document( theModule->getStudyId() ); + HYDROData_SequenceOfObjects aResSeq; - HYDROData_Iterator anIter( theDoc ); + HYDROData_Iterator anIter( aDocument ); for ( ; anIter.More(); anIter.Next() ) { Handle(HYDROData_Entity) anObj = anIter.Current(); diff --git a/src/HYDROGUI/HYDROGUI_Tool.h b/src/HYDROGUI/HYDROGUI_Tool.h index 56d1035a..370021b5 100644 --- a/src/HYDROGUI/HYDROGUI_Tool.h +++ b/src/HYDROGUI/HYDROGUI_Tool.h @@ -150,10 +150,10 @@ public: /** * \brief Get the geometry data objects from document. - * \param theDoc document + * \param theModule module * \return sequence of data objects */ - static HYDROData_SequenceOfObjects GetGeometryObjects( const Handle(HYDROData_Document)& theDoc ); + static HYDROData_SequenceOfObjects GetGeometryObjects( HYDROGUI_Module* theModule ); /** * \brief Get kind of objects the selected partition contains.