瀏覽代碼

also skip lines defining the 'default' color (i.e. the color to use beyond max and min). trac https://trac.osgeo.org/grass/ticket/2009

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@56729 15284696-431f-4ddb-bdfa-cd5b030d7da7
Hamish Bowman 12 年之前
父節點
當前提交
f8a1ee9ce0
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      raster/r.colors/thumbnails.py

+ 1 - 1
raster/r.colors/thumbnails.py

@@ -102,7 +102,7 @@ def make_gradient(path):
             # skip comments
             continue
         records.append(line.split())
-    records = [record for record in records if record[0] != 'nv']
+    records = [record for record in records if record[0] != 'nv' and record[0] != 'default']
     relative = False
     absolute = False
     for record in records: