Browse Source

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 years ago
parent
commit
f8a1ee9ce0
1 changed files with 1 additions and 1 deletions
  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: