Explorar o código

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 %!s(int64=15) %!d(string=hai) anos
pai
achega
fae08e4419
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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++) {