[GRASS-SVN] r68689 - grass/trunk/imagery/i.vi

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Jun 14 14:26:52 PDT 2016


Author: neteler
Date: 2016-06-14 14:26:52 -0700 (Tue, 14 Jun 2016)
New Revision: 68689

Modified:
   grass/trunk/imagery/i.vi/main.c
Log:
i.vi: writing of color table fixed

Modified: grass/trunk/imagery/i.vi/main.c
===================================================================
--- grass/trunk/imagery/i.vi/main.c	2016-06-14 20:14:45 UTC (rev 68688)
+++ grass/trunk/imagery/i.vi/main.c	2016-06-14 21:26:52 UTC (rev 68689)
@@ -539,6 +539,8 @@
     val1 = -1;
     val2 = 1;
     Rast_add_c_color_rule(&val1, 0, 0, 0, &val2, 255, 255, 255, &colors);
+    Rast_write_colors(result, G_mapset(), &colors);
+
     Rast_short_history(result, "raster", &history);
     Rast_command_history(&history);
     Rast_write_history(result, &history);



More information about the grass-commit mailing list