]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
*** empty log message ***
authorasl <asl@opencascade.com>
Thu, 9 Jun 2005 06:48:48 +0000 (06:48 +0000)
committerasl <asl@opencascade.com>
Thu, 9 Jun 2005 06:48:48 +0000 (06:48 +0000)
src/SMESHFiltersSelection/SMESH_TypeFilter.cxx
src/SMESHGUI/SMESHGUI_CreatePolyhedralVolumeDlg.cxx

index 5e98287df5541ea4724d70b505dc72a3e64c321d..856131720ea3e0e23121babd15e85a04b3846df9 100644 (file)
@@ -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:
index 3a572c897d9f2eca6766a8fde1fab83816b57e94..a3079f9bfb20469c61ecfb0f7a3df1aba6090b93 100644 (file)
@@ -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" );