From: ouv Date: Fri, 16 Aug 2013 07:29:09 +0000 (+0000) Subject: Debug for polylines. X-Git-Tag: BR_hydro_v_0_1~112 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=bff0d71513b8b0567f89d3837ec4cea9a3e4aafd;p=modules%2Fhydro.git Debug for polylines. --- diff --git a/src/HYDROGUI/HYDROGUI_Tool.cxx b/src/HYDROGUI/HYDROGUI_Tool.cxx index a159f81a..0a942119 100644 --- a/src/HYDROGUI/HYDROGUI_Tool.cxx +++ b/src/HYDROGUI/HYDROGUI_Tool.cxx @@ -27,7 +27,6 @@ #include "HYDROGUI_Prs.h" #include -#include #include #include @@ -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 ); } }