[GRASS-SVN] r70196 - grass/branches/releasebranch_7_2/raster/r.what

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Jan 2 03:09:50 PST 2017


Author: neteler
Date: 2017-01-02 03:09:50 -0800 (Mon, 02 Jan 2017)
New Revision: 70196

Modified:
   grass/branches/releasebranch_7_2/raster/r.what/main.c
Log:
r.what: print labels also for FCELL/DCELL maps (trunk, r69356)

Modified: grass/branches/releasebranch_7_2/raster/r.what/main.c
===================================================================
--- grass/branches/releasebranch_7_2/raster/r.what/main.c	2017-01-02 11:05:41 UTC (rev 70195)
+++ grass/branches/releasebranch_7_2/raster/r.what/main.c	2017-01-02 11:09:50 UTC (rev 70196)
@@ -453,6 +453,7 @@
 			continue;
 		    }
 		    fprintf(stdout, "%s%ld", fs, (long)cache[point].value[i]);
+		    cache[point].dvalue[i] = cache[point].value[i];
 		}
 		else {		/* FCELL or DCELL */
 
@@ -473,7 +474,7 @@
 		}
 		if (flg.label->answer)
 		    fprintf(stdout, "%s%s", fs,
-			    Rast_get_c_cat(&(cache[point].value[i]), &cats[i]));
+			    Rast_get_d_cat(&(cache[point].dvalue[i]), &cats[i]));
 		if (flg.color->answer)
 		    fprintf(stdout, "%s%s", fs, cache[point].clr_buf[i]);
 	    }



More information about the grass-commit mailing list