[GRASS-SVN] r56729 - grass/trunk/raster/r.colors

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Jun 16 01:39:24 PDT 2013


Author: hamish
Date: 2013-06-16 01:39:24 -0700 (Sun, 16 Jun 2013)
New Revision: 56729

Modified:
   grass/trunk/raster/r.colors/thumbnails.py
Log:
also skip lines defining the 'default' color (i.e. the color to use beyond max and min). trac #2009

Modified: grass/trunk/raster/r.colors/thumbnails.py
===================================================================
--- grass/trunk/raster/r.colors/thumbnails.py	2013-06-16 06:12:52 UTC (rev 56728)
+++ grass/trunk/raster/r.colors/thumbnails.py	2013-06-16 08:39:24 UTC (rev 56729)
@@ -102,7 +102,7 @@
             # 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:



More information about the grass-commit mailing list