Salome HOME
Merge branch 'BR_v14_rc' of ssh://git.salome-platform.org/modules/hydro into BR_v14_rc
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_MergePolylinesOp.cxx
index 9e0eaf0ccea3f59905530671f787a34d8c86f473..c5067c84643cff49d6b1474bf8273980365dcf80 100644 (file)
@@ -58,9 +58,10 @@ bool HYDROGUI_MergePolylinesOp::processApply( int& theUpdateFlags,
     return false;
 
   QString aName = aPanel->GetResultName();
+  bool isConnectByNewSegment = aPanel->IsConnectByNewSegment();
   HYDROData_SequenceOfObjects aPolylinesList = aPanel->selectedPolylines();
   HYDROData_PolylineOperator anOp;
-  anOp.Merge( doc(), aName.toLatin1().data(), aPolylinesList );
+  anOp.Merge( doc(), aName.toLatin1().data(), aPolylinesList, isConnectByNewSegment );
 
   theUpdateFlags = UF_Model | UF_OCCViewer | UF_OCC_Forced | UF_VTKViewer;
   return true;