[GRASS-SVN] r34828 - grass/trunk/display/d.vect
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Dec 11 09:03:41 EST 2008
Author: martinl
Date: 2008-12-11 09:03:41 -0500 (Thu, 11 Dec 2008)
New Revision: 34828
Modified:
grass/trunk/display/d.vect/main.c
Log:
d.vect: use standardized option for 'llayer'
(merge from devbr6, r34827)
Modified: grass/trunk/display/d.vect/main.c
===================================================================
--- grass/trunk/display/d.vect/main.c 2008-12-11 14:00:21 UTC (rev 34827)
+++ grass/trunk/display/d.vect/main.c 2008-12-11 14:03:41 UTC (rev 34828)
@@ -229,19 +229,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_DB_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