From: adv Date: Tue, 17 Dec 2013 09:50:14 +0000 (+0000) Subject: Name for splitted zone (Feature #242). X-Git-Tag: BR_hydro_v_0_6~68 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=7eddf60f462845e1b7cf4dbd2914e870527a8622;p=modules%2Fhydro.git Name for splitted zone (Feature #242). --- diff --git a/src/HYDROData/HYDROData_CalculationCase.cxx b/src/HYDROData/HYDROData_CalculationCase.cxx index 22079005..29c0b314 100644 --- a/src/HYDROData/HYDROData_CalculationCase.cxx +++ b/src/HYDROData/HYDROData_CalculationCase.cxx @@ -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;