瀏覽代碼

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 年之前
父節點
當前提交
7ced42d3cf
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      gui/wxpython/gmodeler/model.py

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

@@ -2134,7 +2134,7 @@ if __name__ == "__main__":
                     cond += condText
                     cond += condText
                 self.fd.write('%s:\n' % cond)
                 self.fd.write('%s:\n' % cond)
                 self.indent += 4
                 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._writePythonItem(action, ignoreBlock = False, variables = [condVar])
                 self.indent -= 4
                 self.indent -= 4
             else: # ModelCondition
             else: # ModelCondition