]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
Minor changes.
authoradv <adv@opencascade.com>
Mon, 11 Nov 2013 05:26:30 +0000 (05:26 +0000)
committeradv <adv@opencascade.com>
Mon, 11 Nov 2013 05:26:30 +0000 (05:26 +0000)
src/HYDROGUI/HYDROGUI_Tool.cxx
src/HYDROGUI/HYDROGUI_Tool.h

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();
index 56d1035ab06db1242d1f816499165a7a2cfc79cb..370021b5df0215f2697a0b5626e95453f6689124 100644 (file)
@@ -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.