[GRASS-SVN] r34827 - grass/branches/develbranch_6/display/d.vect

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Dec 11 09:00:21 EST 2008


Author: martinl
Date: 2008-12-11 09:00:21 -0500 (Thu, 11 Dec 2008)
New Revision: 34827

Modified:
   grass/branches/develbranch_6/display/d.vect/main.c
Log:
d.vect: use standardized option for 'llayer'

Modified: grass/branches/develbranch_6/display/d.vect/main.c
===================================================================
--- grass/branches/develbranch_6/display/d.vect/main.c	2008-12-11 13:08:37 UTC (rev 34826)
+++ grass/branches/develbranch_6/display/d.vect/main.c	2008-12-11 14:00:21 UTC (rev 34827)
@@ -232,19 +232,18 @@
     size_opt->description = _("Symbol size");
 
     /* Labels */
+    lfield_opt = G_define_standard_option(G_OPT_V_FIELD);
+    lfield_opt->key = "llayer";
+    lfield_opt->guisection = _("Labels");
+    lfield_opt->description =
+	_("Layer number for labels (default: the given layer number)");
+
     attrcol_opt = G_define_standard_option(G_OPT_COLUMN);
     attrcol_opt->key = "attrcol";
     attrcol_opt->multiple = NO;	/* or fix attr.c, around line 102 */
     attrcol_opt->guisection = _("Labels");
     attrcol_opt->description = _("Name of column to be displayed");
 
-    lfield_opt = G_define_option();
-    lfield_opt->key = "llayer";
-    lfield_opt->type = TYPE_INTEGER;
-    lfield_opt->guisection = _("Labels");
-    lfield_opt->description =
-	_("Layer for labels (default: the given layer number)");
-
     lcolor_opt = G_define_option();
     lcolor_opt->key = "lcolor";
     lcolor_opt->type = TYPE_STRING;



More information about the grass-commit mailing list