]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
Bug #480: minor corrections.
authormzn <mzn@opencascade.com>
Tue, 28 Oct 2014 13:10:11 +0000 (13:10 +0000)
committermzn <mzn@opencascade.com>
Tue, 28 Oct 2014 13:10:11 +0000 (13:10 +0000)
src/HYDROData/HYDROData_Region.cxx

index aca81aeb2bdb2f868ba126a69d391e01015bb63a..45d7b9e7149cb7a66bf811c12685be9e897815c1 100644 (file)
@@ -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;