From be89ffa62346a3882b41c8f3a07846651e8b1b4b Mon Sep 17 00:00:00 2001 From: dmv Date: Fri, 17 Oct 2008 07:56:04 +0000 Subject: [PATCH] Qt4 porting. Hypothesis Nb segment count Number of segment as not positive first time. --- src/StdMeshers/StdMeshers_NumberOfSegments.cxx | 2 ++ 1 file changed, 2 insertions(+) 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; } -- 2.39.2