[GRASS-SVN] r46906 - grass/trunk/vector/v.support
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Jul 1 04:57:18 EDT 2011
Author: mmetz
Date: 2011-07-01 01:57:18 -0700 (Fri, 01 Jul 2011)
New Revision: 46906
Modified:
grass/trunk/vector/v.support/main.c
Log:
line_3 -> comment
Modified: grass/trunk/vector/v.support/main.c
===================================================================
--- grass/trunk/vector/v.support/main.c 2011-07-01 08:56:30 UTC (rev 46905)
+++ grass/trunk/vector/v.support/main.c 2011-07-01 08:57:18 UTC (rev 46906)
@@ -160,11 +160,11 @@
if (comment->answer) { /* apparently only one line comments allowed, so we use space to delimit */
char *temp;
- if (r_flag->answer || strlen(Map.head.line_3) == 0) { /* check if new/replacing or adding */
+ if (r_flag->answer || strlen(Vect_get_comment(&Map)) == 0) { /* check if new/replacing or adding */
G_asprintf(&temp, "%s", comment->answer);
}
else {
- G_asprintf(&temp, "%s %s", Map.head.line_3, comment->answer);
+ G_asprintf(&temp, "%s %s", Vect_get_comment(&Map), comment->answer);
}
Vect_set_comment(&Map, temp);
}
More information about the grass-commit
mailing list