[GRASS-SVN] r47671 - grass/trunk/lib/raster

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Aug 16 07:44:49 EDT 2011


Author: martinl
Date: 2011-08-16 04:44:49 -0700 (Tue, 16 Aug 2011)
New Revision: 47671

Modified:
   grass/trunk/lib/raster/color_look.c
Log:
rasterlib: fix bug in Rast__lookup_colors()


Modified: grass/trunk/lib/raster/color_look.c
===================================================================
--- grass/trunk/lib/raster/color_look.c	2011-08-16 09:36:12 UTC (rev 47670)
+++ grass/trunk/lib/raster/color_look.c	2011-08-16 11:44:49 UTC (rev 47671)
@@ -223,7 +223,7 @@
     dmin = cp->min;
     dmax = cp->max;
     min = (CELL) dmin;
-    max = (CELL) dmax + 1;
+    max = (CELL) dmax;
 
     cell_type = (data_type == CELL_TYPE);
 



More information about the grass-commit mailing list