From: mzn Date: Fri, 13 Dec 2013 06:07:40 +0000 (+0000) Subject: Bug #217: Fatal error during creation of polyline. X-Git-Tag: BR_hydro_v_0_5~16 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=59fa9c090b55371adfe4207fcc550fbb02358119;p=modules%2Fhydro.git Bug #217: Fatal error during creation of polyline. --- diff --git a/src/HYDROData/HYDROData_PolylineXY.cxx b/src/HYDROData/HYDROData_PolylineXY.cxx index 776e7db0..2032ba0b 100755 --- a/src/HYDROData/HYDROData_PolylineXY.cxx +++ b/src/HYDROData/HYDROData_PolylineXY.cxx @@ -232,8 +232,10 @@ void HYDROData_PolylineXY::Update() } TopoDS_Wire aSectionWire = BuildWire( aSectionType, anIsSectionClosed, aPoints ); - aSectionWiresList.Append( aSectionWire ); - aMakeWire.Add( aSectionWire ); + if ( !aSectionWire.IsNull() ) { + aSectionWiresList.Append( aSectionWire ); + aMakeWire.Add( aSectionWire ); + } } TopoDS_Shape aShape;