Salome HOME
SMESH_Hypothesis::Hypothesis_Status aStatus;
[modules/smesh.git] / src / StdMeshers / StdMeshers_NumberOfLayers.cxx
index 604ee185aa8683eedb2d9c5e0312ec7113f7ce89..8abb02c632a3dd5549b9c3cef9a4c1106341337a 100644 (file)
@@ -171,7 +171,7 @@ bool StdMeshers_NumberOfLayers::SetParametersByDefaults(const TDefaults&  dflts,
                                                         const SMESH_Mesh* theMesh)
 {
   if ( dflts._elemLength )
-    return bool( theMesh ? _nbLayers = int( theMesh->GetShapeDiagonalSize() / dflts._elemLength/ 2.) : 0);
+    return theMesh ? (_nbLayers = int( theMesh->GetShapeDiagonalSize() / dflts._elemLength/ 2.)) : 0;
   return false;
 }