Explorar o código

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 %!s(int64=12) %!d(string=hai) anos
pai
achega
f8a1ee9ce0
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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: