[GRASS-SVN] r61501 - grass/trunk/gui/wxpython/core

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Aug 2 19:02:50 PDT 2014


Author: annakrat
Date: 2014-08-02 19:02:50 -0700 (Sat, 02 Aug 2014)
New Revision: 61501

Modified:
   grass/trunk/gui/wxpython/core/gconsole.py
Log:
wxGUI: fix unnecessary rerendering when running r.colors with multiple input maps

Modified: grass/trunk/gui/wxpython/core/gconsole.py
===================================================================
--- grass/trunk/gui/wxpython/core/gconsole.py	2014-08-02 03:44:48 UTC (rev 61500)
+++ grass/trunk/gui/wxpython/core/gconsole.py	2014-08-03 02:02:50 UTC (rev 61501)
@@ -661,6 +661,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