]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
Issue 0020368: SMESHGUI_MeshDlg::isTabEnabled must return something
authorvsr <vsr@opencascade.com>
Wed, 27 May 2009 14:20:16 +0000 (14:20 +0000)
committervsr <vsr@opencascade.com>
Wed, 27 May 2009 14:20:16 +0000 (14:20 +0000)
src/SMESH_I/SMESH_Filter_i.cxx

index a7b63412005604d854cf518089a63996440e90d4..bd92ee2d49b6efc2d38c9c15dabd8d970759f655 100644 (file)
@@ -2516,7 +2516,7 @@ CORBA::Boolean Filter_i::SetCriteria( const SMESH::Filter::Criteria& theCriteria
         {
           SMESH::ElemGeomType_ptr tmpPred = aFilterMgr->CreateElemGeomType();
           tmpPred->SetElementType( aTypeOfElem );
-          tmpPred->SetGeometryType( (GeometryType)(aThreshold + 0.5) );
+          tmpPred->SetGeometryType( (GeometryType)(int)(aThreshold + 0.5) );
           aPredicate = tmpPred;
           break;
         }