Parcourir la source

r.profile: make profile option a standard option G_OPT_M_COORDS (mouse can be now used to input coordinates when started from GUI)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@59052 15284696-431f-4ddb-bdfa-cd5b030d7da7
Vaclav Petras il y a 11 ans
Parent
commit
fc094e4c2f
1 fichiers modifiés avec 1 ajouts et 2 suppressions
  1. 1 2
      raster/r.profile/main.c

+ 1 - 2
raster/r.profile/main.c

@@ -60,9 +60,8 @@ int main(int argc, char *argv[])
     parm.output->description =
 	_("Name of file for output (use output=- for stdout)");
 
-    parm.profile = G_define_option();
+    parm.profile = G_define_standard_option(G_OPT_M_COORDS);
     parm.profile->key = "profile";
-    parm.profile->type = TYPE_STRING;
     parm.profile->required = NO;
     parm.profile->multiple = YES;
     parm.profile->key_desc = "east,north";