Przeglądaj źródła

vlib(pg): fix caching features (reset also fparts)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@51022 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 13 lat temu
rodzic
commit
88411ff32f
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      lib/vector/Vlib/read_pg.c

+ 1 - 0
lib/vector/Vlib/read_pg.c

@@ -732,6 +732,7 @@ SF_FeatureType cache_feature(const char *data, int skip_polygon,
 	reallocate_cache(cache, 1);
 	reallocate_cache(cache, 1);
     }
     }
     cache->lines_num = 0;
     cache->lines_num = 0;
+    fparts->n_parts = 0;
     
     
     ret = -1;
     ret = -1;
     if (ftype == SF_POINT) {
     if (ftype == SF_POINT) {