]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
Debug for polylines.
authorouv <ouv@opencascade.com>
Fri, 16 Aug 2013 07:29:09 +0000 (07:29 +0000)
committerouv <ouv@opencascade.com>
Fri, 16 Aug 2013 07:29:09 +0000 (07:29 +0000)
src/HYDROGUI/HYDROGUI_Tool.cxx

index a159f81ae8dc8412df68844eb7d58b36fcc75272..0a942119126c98e14d6a8c02e402cbafd70a6e83 100644 (file)
@@ -27,7 +27,6 @@
 #include "HYDROGUI_Prs.h"
 
 #include <HYDROData_Document.h>
-#include <HYDROData_Image.h>
 #include <HYDROData_Iterator.h>
 
 #include <LightApp_Application.h>
@@ -169,13 +168,12 @@ void HYDROGUI_Tool::GetPrsSubObjects( HYDROGUI_Module* theModule,
   if( aDocument.IsNull() )
     return;
 
-  HYDROData_Iterator anIterator( aDocument, KIND_IMAGE );
+  HYDROData_Iterator anIterator( aDocument, KIND_UNKNOWN );
   for( ; anIterator.More(); anIterator.Next() )
   {
-    Handle(HYDROData_Image) anImageObj =
-      Handle(HYDROData_Image)::DownCast( anIterator.Current() );
-    if( !anImageObj.IsNull() )
-      theSeq.Append( anImageObj );
+    Handle(HYDROData_Object) anObject = anIterator.Current();
+    if( !anObject.IsNull() )
+      theSeq.Append( anObject );
   }
 }