From: adv Date: Tue, 5 Nov 2013 07:09:14 +0000 (+0000) Subject: Adding reference Region/Zone corrected. X-Git-Tag: BR_hydro_v_0_3~52 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ef9ddefc04a862ba7b8b5cfda9eedc0484626512;p=modules%2Fhydro.git Adding reference Region/Zone corrected. --- diff --git a/src/HYDROData/HYDROData_CalculationCase.cxx b/src/HYDROData/HYDROData_CalculationCase.cxx index af132d34..6c5339e2 100644 --- a/src/HYDROData/HYDROData_CalculationCase.cxx +++ b/src/HYDROData/HYDROData_CalculationCase.cxx @@ -198,8 +198,11 @@ bool HYDROData_CalculationCase::AddRegion( const Handle(HYDROData_Region)& theRe theRegion->SetLabel( aNewRegion->Label() ); } + else + { + AddReferenceObject( theRegion, DataTag_Region ); + } - AddReferenceObject( theRegion, DataTag_Region ); return true; } diff --git a/src/HYDROData/HYDROData_Region.cxx b/src/HYDROData/HYDROData_Region.cxx index 40d193b5..45f96d92 100644 --- a/src/HYDROData/HYDROData_Region.cxx +++ b/src/HYDROData/HYDROData_Region.cxx @@ -73,8 +73,11 @@ bool HYDROData_Region::AddZone( const Handle(HYDROData_Zone)& theZone ) theZone->SetLabel( aNewZone->Label() ); } + else + { + AddReferenceObject( theZone, DataTag_Zone ); + } - AddReferenceObject( theZone, DataTag_Zone ); return true; }