浏览代码

colortable: allow negative values
set icon
(merge from devbr6, https://trac.osgeo.org/grass/changeset/33956)


git-svn-id: https://svn.osgeo.org/grass/grass/trunk@33957 15284696-431f-4ddb-bdfa-cd5b030d7da7

Martin Landa 17 年之前
父节点
当前提交
9f1b158c9b
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      gui/wxpython/gui_modules/colorrules.py

+ 3 - 1
gui/wxpython/gui_modules/colorrules.py

@@ -48,6 +48,8 @@ class ColorTable(wx.Frame):
         @param cmd command (given as list)
         """
         self.parent = parent # GMFrame
+  
+        self.SetIcon(wx.Icon(os.path.join(globalvar.ETCICONDIR, 'grass.ico'), wx.BITMAP_TYPE_ICO))
         
         # grass command
         self.cmd = kwargs['cmd']
@@ -449,7 +451,7 @@ class ColorTable(wx.Frame):
         if self.elem == 'cell':
 
             try:
-                if '%' not in vals:
+                if vals != '-':
                     float(vals)
             except ValueError:
                 tc.SetValue('')