From: dmv Date: Fri, 17 Oct 2008 07:56:04 +0000 (+0000) Subject: Qt4 porting. Hypothesis Nb segment count Number of segment as not positive first... X-Git-Tag: V5_1_0a3~11 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=be89ffa62346a3882b41c8f3a07846651e8b1b4b;p=modules%2Fsmesh.git Qt4 porting. Hypothesis Nb segment count Number of segment as not positive first time. --- diff --git a/src/StdMeshers/StdMeshers_NumberOfSegments.cxx b/src/StdMeshers/StdMeshers_NumberOfSegments.cxx index 51300c137..766a92e3f 100644 --- a/src/StdMeshers/StdMeshers_NumberOfSegments.cxx +++ b/src/StdMeshers/StdMeshers_NumberOfSegments.cxx @@ -680,5 +680,7 @@ bool StdMeshers_NumberOfSegments::SetParametersByMesh(const SMESH_Mesh* theMes if ( nbEdges ) _numberOfSegments /= nbEdges; + if (_numberOfSegments == 0) _numberOfSegments = 1; + return nbEdges; }