]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
patch for crash
authorasl <asl@opencascade.com>
Tue, 30 Jun 2015 09:13:02 +0000 (12:13 +0300)
committerasl <asl@opencascade.com>
Tue, 30 Jun 2015 09:13:02 +0000 (12:13 +0300)
src/HYDROData/HYDROData_PolylineXY.cxx

index 8071d35cb837a8e5a0c7d6007e9c7e6c62dde749..37559e3f3a43775ac7c1ef4a4c9501e839f5c9e2 100755 (executable)
@@ -1183,8 +1183,10 @@ bool HYDROData_PolylineXY::IsCustom() const
 {
   bool isNull = getPolylineShape().IsNull();
   int aNbPoints = 0;
-  for( int i=0, n=NbSections(); i<n; i++ )
-    aNbPoints += NbPoints( i );
+
+  //TODO: to check if there is no points
+  //for( int i=0, n=NbSections(); i<n; i++ )
+  //  aNbPoints += NbPoints( i );
 
   return !isNull && aNbPoints == 0;
 }