瀏覽代碼

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 年之前
父節點
當前提交
8b2237c6c7
共有 2 個文件被更改,包括 3 次插入2 次删除
  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 {