From a77c14d80e6a41d0ac8979273d4696f9ffde626a Mon Sep 17 00:00:00 2001 From: adv Date: Mon, 11 Nov 2013 05:26:30 +0000 Subject: [PATCH] Minor changes. --- src/HYDROGUI/HYDROGUI_Tool.cxx | 6 ++++-- src/HYDROGUI/HYDROGUI_Tool.h | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) 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. -- 2.39.2