瀏覽代碼

g.gui.gmodeler - all layers rewritten by last output for more than one parameter (https://trac.osgeo.org/grass/ticket/2909)
(merge r68050:68051 from trunk)


git-svn-id: https://svn.osgeo.org/grass/grass/branches/releasebranch_7_0@68082 15284696-431f-4ddb-bdfa-cd5b030d7da7

Martin Landa 9 年之前
父節點
當前提交
8726054b4b
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      gui/wxpython/gmodeler/model.py

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

@@ -552,7 +552,7 @@ class Model(object):
         :param onPrepare: on-prepare method
         :param statusbar: wx.StatusBar instance or None
         """
-        name = item.GetLabel()
+        name = '({0}) {1}'.format(item.GetId(), item.GetLabel())
         if name in params:
             paramsOrig = item.GetParams(dcopy = True)
             item.MergeParams(params[name])
@@ -811,7 +811,7 @@ class Model(object):
         for action in self.GetItems(objType = ModelAction):
             if not action.IsEnabled():
                 continue
-            name   = action.GetLabel()
+            name   = '({0}) {1}'.format(action.GetId(), action.GetLabel())
             params = action.GetParams()
             increment = False
             for f in params['flags']: