浏览代码

rasterlib: fix bug in Rast__lookup_colors()

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@47671 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 13 年之前
父节点
当前提交
545da5f8d5
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/raster/color_look.c

+ 1 - 1
lib/raster/color_look.c

@@ -223,7 +223,7 @@ void Rast__lookup_colors(const void *raster, unsigned char *red,
     dmin = cp->min;
     dmax = cp->max;
     min = (CELL) dmin;
-    max = (CELL) dmax + 1;
+    max = (CELL) dmax;
 
     cell_type = (data_type == CELL_TYPE);