- //TODO: to check if there is no points
- //for( int i=0, n=NbSections(); i<n; i++ )
- // aNbPoints += NbPoints( i );
+ HYDROData_PolylineXY* aThat = const_cast<HYDROData_PolylineXY*>( this );
+ aThat->myIsInCustomFlag = true;
+ for( int i=0, n=NbSections(); i<n; i++ )
+ aNbPoints += NbPoints( i );
+ aThat->myIsInCustomFlag = false;