Sfoglia il codice sorgente

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 anni fa
parent
commit
01c64c3c39
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  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"));