فهرست منبع

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);