]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
Name for splitted zone (Feature #242).
authoradv <adv@opencascade.com>
Tue, 17 Dec 2013 09:50:14 +0000 (09:50 +0000)
committeradv <adv@opencascade.com>
Tue, 17 Dec 2013 09:50:14 +0000 (09:50 +0000)
src/HYDROData/HYDROData_CalculationCase.cxx

index 220790056cd917e0ab50f1075a26aa4687d75218..29c0b3145d3c83882a5b7c912ef469da9f35e681 100644 (file)
@@ -227,10 +227,21 @@ void HYDROData_CalculationCase::Update()
       if ( anObjName.isEmpty() )
         continue;
 
+      Handle(HYDROData_SplittedEdgesGroup) aSplittedGroup;
       if ( !aSplittedEdgesGroupsMap.contains( anObjName ) )
-        aSplittedEdgesGroupsMap.insert( anObjName, addNewSplittedGroup() );
+      {
+        aSplittedGroup = addNewSplittedGroup();
+
+        QString aCalcGroupName = GetName() + "_" + anObjName;
+        aSplittedGroup->SetName( aCalcGroupName );
+
+        aSplittedEdgesGroupsMap.insert( anObjName, aSplittedGroup );
+      }
+      else
+      {
+        aSplittedGroup = aSplittedEdgesGroupsMap[ anObjName ];
+      }
 
-      Handle(HYDROData_SplittedEdgesGroup) aSplittedGroup = aSplittedEdgesGroupsMap[ anObjName ];
       if ( aSplittedGroup.IsNull() )
         continue;