Browse Source

d.vect: zcolor, rgb_column, and -c mutually exclusive

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@70520 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 8 years ago
parent
commit
8b2237c6c7
2 changed files with 3 additions and 2 deletions
  1. 2 0
      display/d.vect/main.c
  2. 1 2
      display/d.vect/shape.c

+ 2 - 0
display/d.vect/main.c

@@ -329,6 +329,8 @@ int main(int argc, char **argv)
     legend_flag->label = _("Do not show this layer in vector legend");
     legend_flag->guisection = _("Legend");
 
+    G_option_exclusive(zcol_opt, rgbcol_opt, cats_acolors_flag, NULL);
+    
     /* Check command line */
     if (G_parser(argc, argv))
 	exit(EXIT_FAILURE);

+ 1 - 2
display/d.vect/shape.c

@@ -183,8 +183,7 @@ int display_shape(struct Map_info *Map, int type, struct cat_list *Clist, const
 	    z_style = NULL;
 	}
         else if (rgb_column) {
-            G_warning(_("%s= and %s= are mutually exclusive. "
-                        "%s= will be ignored."), "zcolor", "rgb_column", "zcolor");
+            /* this should not happend, zcolor and rgb_columns are mutually exclusive */
 	    z_style = NULL;
         }
 	else {