[GRASS-SVN] r61502 - grass/branches/releasebranch_7_0/gui/wxpython/core

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Aug 2 19:04:30 PDT 2014


Author: annakrat
Date: 2014-08-02 19:04:30 -0700 (Sat, 02 Aug 2014)
New Revision: 61502

Modified:
   grass/branches/releasebranch_7_0/gui/wxpython/core/gconsole.py
Log:
wxGUI: fix unnecessary rerendering when running r.colors with multiple input maps (merge from trunk, r61501)

Modified: grass/branches/releasebranch_7_0/gui/wxpython/core/gconsole.py
===================================================================
--- grass/branches/releasebranch_7_0/gui/wxpython/core/gconsole.py	2014-08-03 02:02:50 UTC (rev 61501)
+++ grass/branches/releasebranch_7_0/gui/wxpython/core/gconsole.py	2014-08-03 02:04:30 UTC (rev 61502)
@@ -657,6 +657,10 @@
                     # if multiple maps (e.g. r.series.interp), we need add each
                     if p.get('multiple', False):
                         lnames = p.get('value').split(',')
+                        # in case multiple input (old) maps in r.colors
+                        # we don't want to rerender it multiple times! just once
+                        if p.get('age', 'old') == 'old':
+                            lnames = lnames[0:1]
                     else:
                         lnames = [p.get('value')]
                     for lname in lnames:



More information about the grass-commit mailing list