Ver código fonte

v.what: Fix https://trac.osgeo.org/grass/ticket/3306

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@70726 15284696-431f-4ddb-bdfa-cd5b030d7da7
Huidae Cho 8 anos atrás
pai
commit
01c64c3c39
1 arquivos alterados com 2 adições e 1 exclusões
  1. 2 1
      vector/v.what/what.c

+ 2 - 1
vector/v.what/what.c

@@ -667,7 +667,8 @@ void what(struct Map_info *Map, int nvects, char **vect, double east,
 		    fprintf(stdout, "Type=Area\n");
 		    break;
 		case OUTPUT_JSON:
-		    fprintf(stdout, ",\n\"Type\": \"Area\"");
+		    fprintf(stdout, "%s\n\"Type\": \"Area\"",
+			    multiple ? "" : ",");
 		    break;
 		default:
 		    fprintf(stdout, _("Type: Area\n"));