Explorar o código

wxGUI/gmodeler: fix loops in python export

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@58148 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa %!s(int64=11) %!d(string=hai) anos
pai
achega
7ced42d3cf
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      gui/wxpython/gmodeler/model.py

+ 1 - 1
gui/wxpython/gmodeler/model.py

@@ -2134,7 +2134,7 @@ if __name__ == "__main__":
                     cond += condText
                 self.fd.write('%s:\n' % cond)
                 self.indent += 4
-                for action in item.GetItems():
+                for action in item.GetItems(self.model.GetItems(objType=ModelAction)):
                     self._writePythonItem(action, ignoreBlock = False, variables = [condVar])
                 self.indent -= 4
             else: # ModelCondition