Salome HOME
refs #626: No warning appears during attempt splitting not intersected polylines
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_SplitPolylinesOp.cxx
index c81b1c6b76375ecf06be8d8869a19bb0b30f84b0..5adf7730de1f0e76b172adeaacf7416327407807 100644 (file)
@@ -87,13 +87,14 @@ bool HYDROGUI_SplitPolylinesOp::processApply( int& theUpdateFlags,
   double aTolerance = 1E-2; //TODO
 
   HYDROData_PolylineOperator anOp;
+  bool isIntersected = false;
   switch( aPanel->GetMode() )
   {
   case HYDROGUI_SplitPolylinesDlg::ByPoint:
     anOp.Split( doc(), aMainPolyline, aPoint, aTolerance );
     break;
   case HYDROGUI_SplitPolylinesDlg::ByTool:
-    anOp.Split( doc(), aMainPolyline, aToolPolyline, aTolerance );
+    anOp.Split( doc(), aMainPolyline, aToolPolyline, aTolerance, isIntersected);
     break;
   case HYDROGUI_SplitPolylinesDlg::Split:
     anOp.Split( doc(), aPolylinesList, aTolerance );