[GRASS-SVN] r32771 - grass/trunk/display/d.rast
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Aug 14 23:16:42 EDT 2008
Author: glynn
Date: 2008-08-14 23:16:41 -0400 (Thu, 14 Aug 2008)
New Revision: 32771
Modified:
grass/trunk/display/d.rast/main.c
Log:
Make nulls transparent by default; add -n flag
Modified: grass/trunk/display/d.rast/main.c
===================================================================
--- grass/trunk/display/d.rast/main.c 2008-08-14 18:12:02 UTC (rev 32770)
+++ grass/trunk/display/d.rast/main.c 2008-08-15 03:16:41 UTC (rev 32771)
@@ -43,7 +43,7 @@
struct Option *catlist;
struct Option *vallist;
struct Option *bg;
- struct Flag *flag_o;
+ struct Flag *flag_n;
struct Flag *flag_i;
/* Initialize the GIS calls */
@@ -87,9 +87,9 @@
bg->options = color_list();
bg->description = _("Background color (for null)");
- flag_o = G_define_flag();
- flag_o->key = 'o';
- flag_o->description = _("Overlay (non-null values only)");
+ flag_n = G_define_flag();
+ flag_n->key = 'n';
+ flag_n->description = _("Make null cells opaque");
flag_i = G_define_flag();
flag_i->key = 'i';
@@ -99,7 +99,7 @@
exit(EXIT_FAILURE);
name = map->answer;
- overlay = flag_o->answer;
+ overlay = !flag_n->answer;
invert = flag_i->answer;
/* Make sure map is available */
More information about the grass-commit
mailing list