From 5e356c3e2c3f58ecba541d647be65193099cd67c Mon Sep 17 00:00:00 2001 From: asl Date: Thu, 9 Jun 2005 06:48:48 +0000 Subject: [PATCH] *** empty log message *** --- src/SMESHFiltersSelection/SMESH_TypeFilter.cxx | 3 +++ src/SMESHGUI/SMESHGUI_CreatePolyhedralVolumeDlg.cxx | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/SMESHFiltersSelection/SMESH_TypeFilter.cxx b/src/SMESHFiltersSelection/SMESH_TypeFilter.cxx index 5e98287df..856131720 100644 --- a/src/SMESHFiltersSelection/SMESH_TypeFilter.cxx +++ b/src/SMESHFiltersSelection/SMESH_TypeFilter.cxx @@ -33,6 +33,9 @@ bool SMESH_TypeFilter::isOk (const SUIT_DataOwner* theDataOwner) const _PTR(SObject) objFather = obj->GetFather(); _PTR(SComponent) objComponent = obj->GetFatherComponent(); + if( objComponent->ComponentDataType()!="SMESH" ) + return false; + int aLevel = obj->Depth() - objComponent->Depth(); // Max level under the component is 4: diff --git a/src/SMESHGUI/SMESHGUI_CreatePolyhedralVolumeDlg.cxx b/src/SMESHGUI/SMESHGUI_CreatePolyhedralVolumeDlg.cxx index 3a572c897..a3079f9bf 100644 --- a/src/SMESHGUI/SMESHGUI_CreatePolyhedralVolumeDlg.cxx +++ b/src/SMESHGUI/SMESHGUI_CreatePolyhedralVolumeDlg.cxx @@ -195,7 +195,7 @@ SMESHGUI_CreatePolyhedralVolumeDlg::SMESHGUI_CreatePolyhedralVolumeDlg( SMESHGUI myViewWindow( SMESH::GetViewWindow( theModule ) ), mySelector( myViewWindow->GetSelector() ) { - QPixmap image0( SMESHGUI::resourceMgr()->loadPixmap( "SMESH",tr("ICON_SELECT"))); + QPixmap image0( SMESH::GetResourceMgr( mySMESHGUI )->loadPixmap( "SMESH",tr("ICON_SELECT"))); if ( !name ) setName( "SMESHGUI_CreatePolyhedralVolumeDlg" ); -- 2.39.2