]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
Bug #217: Fatal error during creation of polyline.
authormzn <mzn@opencascade.com>
Fri, 13 Dec 2013 06:07:40 +0000 (06:07 +0000)
committermzn <mzn@opencascade.com>
Fri, 13 Dec 2013 06:07:40 +0000 (06:07 +0000)
src/HYDROData/HYDROData_PolylineXY.cxx

index 776e7db09e503c19ff5bee2533cf15475881fc02..2032ba0b6cea77d3ed79b303a1b97dfcda1e7ce6 100755 (executable)
@@ -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;