浏览代码

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 年之前
父节点
当前提交
88411ff32f
共有 1 个文件被更改,包括 1 次插入0 次删除
  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);
     }
     cache->lines_num = 0;
+    fparts->n_parts = 0;
     
     ret = -1;
     if (ftype == SF_POINT) {