From bff0d71513b8b0567f89d3837ec4cea9a3e4aafd Mon Sep 17 00:00:00 2001 From: ouv Date: Fri, 16 Aug 2013 07:29:09 +0000 Subject: [PATCH] Debug for polylines. --- src/HYDROGUI/HYDROGUI_Tool.cxx | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) 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 ); } } -- 2.39.2