瀏覽代碼

wxGUI/rdigit: fix setting color table

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@64537 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová 10 年之前
父節點
當前提交
540766a226
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      gui/wxpython/rdigit/controller.py

+ 2 - 0
gui/wxpython/rdigit/controller.py

@@ -477,6 +477,8 @@ class RDigitController(wx.EvtHandler):
                 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,