[GRASS-SVN] r36508 - grass/trunk/vector/v.info

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Mar 28 13:33:28 EDT 2009


Author: martinl
Date: 2009-03-28 13:33:28 -0400 (Sat, 28 Mar 2009)
New Revision: 36508

Modified:
   grass/trunk/vector/v.info/main.c
Log:
v.info: use Vect_get_comment()


Modified: grass/trunk/vector/v.info/main.c
===================================================================
--- grass/trunk/vector/v.info/main.c	2009-03-28 17:03:24 UTC (rev 36507)
+++ grass/trunk/vector/v.info/main.c	2009-03-28 17:33:28 UTC (rev 36508)
@@ -45,7 +45,6 @@
     struct Option *in_opt, *fieldopt;
     struct Flag *histf, *columns, *gflag, *tflag, *mflag;
     struct Map_info Map;
-    struct dig_head v_head;
     BOUND_BOX box;
     const char *mapset;
     char line[200], buf[1001];
@@ -108,7 +107,6 @@
     Vect_set_open_level(2);
     Vect_open_old_head(&Map, in_opt->answer, "");
     with_z = Vect_is_3d(&Map);
-    v_head = Map.head;
 
     if (histf->answer) {
 	Vect_hist_rewind(&Map);
@@ -330,7 +328,7 @@
 	    printline(line);
 	    sprintf(line, _("  Comments:"));
 	    printline(line);
-	    sprintf(line, "    %s", v_head.line_3);
+	    sprintf(line, "    %s", Vect_get_comment(&Map));
 	    printline(line);
 	    divider('+');
 	    fprintf(stdout, "\n");



More information about the grass-commit mailing list