From: mzn Date: Tue, 28 Oct 2014 13:10:11 +0000 (+0000) Subject: Bug #480: minor corrections. X-Git-Tag: BR_hydro_v_1_0_4~6 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=37ccd66fccb7af56d2e490cceed59adf5bff470d;p=modules%2Fhydro.git Bug #480: minor corrections. --- diff --git a/src/HYDROData/HYDROData_Region.cxx b/src/HYDROData/HYDROData_Region.cxx index aca81aeb..45d7b9e7 100644 --- a/src/HYDROData/HYDROData_Region.cxx +++ b/src/HYDROData/HYDROData_Region.cxx @@ -392,8 +392,7 @@ QStringList HYDROData_Region::DumpToPython( MapOfTreatedObjects& theTreatedObjec // find zone aZone->findPythonReferenceObject( theTreatedObjects, aResList ); theTreatedObjects.insert( aZone->GetName(), aZone ); - // add zone - setPythonReferenceObject( theTreatedObjects, aResList, aZone, "AddZone" ); + // set zone merge type QString aMergeTypeStr; HYDROData_Zone::MergeAltitudesType aMergeType = aZone->GetMergeType(); @@ -416,6 +415,9 @@ QStringList HYDROData_Region::DumpToPython( MapOfTreatedObjects& theTreatedObjec .arg( aMergeAltitude->GetObjPyName() ); } } + + // add zone + setPythonReferenceObject( theTreatedObjects, aResList, aZone, "AddZone" ); } return aResList;