]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
Qt4 porting. Hypothesis Nb segment count Number of segment as not positive first...
authordmv <dmv@opencascade.com>
Fri, 17 Oct 2008 07:56:04 +0000 (07:56 +0000)
committerdmv <dmv@opencascade.com>
Fri, 17 Oct 2008 07:56:04 +0000 (07:56 +0000)
src/StdMeshers/StdMeshers_NumberOfSegments.cxx

index 51300c1379cb308788abce3e6b8f6195c082fe51..766a92e3fa7a21ef99c7579693e794de494cdbcd 100644 (file)
@@ -680,5 +680,7 @@ bool StdMeshers_NumberOfSegments::SetParametersByMesh(const SMESH_Mesh*   theMes
   if ( nbEdges )
     _numberOfSegments /= nbEdges;
 
+  if (_numberOfSegments == 0) _numberOfSegments = 1;
+
   return nbEdges;
 }