Przeglądaj źródła

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 11 lat temu
rodzic
commit
7ced42d3cf
1 zmienionych plików z 1 dodań i 1 usunięć
  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