Salome HOME
Fix for the bug #37: Error when import image with format not supported.
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_Tool.cxx
index cf877cb3e48c558a1c6a2c62be45478803877077..fc1b7e5e100e0b817851f250dc635d9825f03869 100644 (file)
@@ -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();