From: vsr Date: Wed, 27 May 2009 14:20:16 +0000 (+0000) Subject: Issue 0020368: SMESHGUI_MeshDlg::isTabEnabled must return something X-Git-Tag: V5_1_2rc1~4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c645e10df038fc2e0542a9451cf6e968fb507594;p=modules%2Fsmesh.git Issue 0020368: SMESHGUI_MeshDlg::isTabEnabled must return something --- diff --git a/src/SMESH_I/SMESH_Filter_i.cxx b/src/SMESH_I/SMESH_Filter_i.cxx index a7b634120..bd92ee2d4 100644 --- a/src/SMESH_I/SMESH_Filter_i.cxx +++ b/src/SMESH_I/SMESH_Filter_i.cxx @@ -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; }