[GRASS-SVN] r64537 - grass/trunk/gui/wxpython/rdigit

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Feb 10 12:58:58 PST 2015


Author: annakrat
Date: 2015-02-10 12:58:58 -0800 (Tue, 10 Feb 2015)
New Revision: 64537

Modified:
   grass/trunk/gui/wxpython/rdigit/controller.py
Log:
wxGUI/rdigit: fix setting color table

Modified: grass/trunk/gui/wxpython/rdigit/controller.py
===================================================================
--- grass/trunk/gui/wxpython/rdigit/controller.py	2015-02-10 09:55:29 UTC (rev 64536)
+++ grass/trunk/gui/wxpython/rdigit/controller.py	2015-02-10 20:58:58 UTC (rev 64537)
@@ -477,6 +477,8 @@
                 return
             if not self._backgroundRaster:
                 table = UserSettings.Get(group='rasterLayer', key='colorTable', subkey='selection')
+                if not table:
+                    table = 'rainbow'
                 gcore.run_command('r.colors', color=table, map=self._editedRaster, quiet=True)
             else:
                 gcore.run_command('r.colors', map=self._editedRaster,



More information about the grass-commit mailing list