瀏覽代碼

i.vi: writing of color table fixed (trunk, https://trac.osgeo.org/grass/changeset/68689)

git-svn-id: https://svn.osgeo.org/grass/grass/branches/releasebranch_7_0@68691 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Neteler 9 年之前
父節點
當前提交
22e16bed76
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      imagery/i.vi/main.c

+ 2 - 0
imagery/i.vi/main.c

@@ -539,6 +539,8 @@ int main(int argc, char *argv[])
     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);