From 59fa9c090b55371adfe4207fcc550fbb02358119 Mon Sep 17 00:00:00 2001 From: mzn Date: Fri, 13 Dec 2013 06:07:40 +0000 Subject: [PATCH] Bug #217: Fatal error during creation of polyline. --- src/HYDROData/HYDROData_PolylineXY.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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; -- 2.39.2