Selaa lähdekoodia

v.out.ogr: fix to export areas

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@39553 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 15 vuotta sitten
vanhempi
commit
fae08e4419
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      vector/v.out.ogr/main.c

+ 1 - 1
vector/v.out.ogr/main.c

@@ -614,7 +614,7 @@ int main(int argc, char *argv[])
     }
 
     /* Areas (run always to count features of different type) */
-    if (Vect_get_num_primitives(&In, GV_AREA) > 0 && otype & GV_AREA) {
+    if (Vect_get_num_areas(&In) > 0 && otype & GV_AREA) {
 	G_message(_("Exporting %i areas (may take some time)..."),
 		  Vect_get_num_areas(&In));
 	for (i = 1; i <= Vect_get_num_areas(&In); i++) {