]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
force update of channel - delete groups BR_1064
authorisn <isn@opencascade.com>
Thu, 1 Dec 2016 11:57:06 +0000 (14:57 +0300)
committerisn <isn@opencascade.com>
Thu, 1 Dec 2016 11:57:06 +0000 (14:57 +0300)
src/HYDROData/HYDROData_Channel.cxx

index 899c4fbe7dea3c6e2c06579b1a4a8324e10196b2..09ba1c648d875557d293ebf4c927ec17431314ae 100644 (file)
@@ -329,9 +329,9 @@ void HYDROData_Channel::Update()
 
   TopTools_SequenceOfShape anOutletEdges;
   HYDROData_ShapesTool::ExploreShapeToShapes( aResultPrs.myOutlet, TopAbs_EDGE, anOutletEdges );
-
+    
+  RemoveGroupObjects();
   QString aLeftGroupName = GetName() + "_Left_Bank";
-
   Handle(HYDROData_ShapesGroup) aLeftGroup = createGroupObject();
   aLeftGroup->SetName( aLeftGroupName );
   aLeftGroup->SetShapes( aLeftBankEdges );