浏览代码

Vlib: revert https://trac.osgeo.org/grass/changeset/60691, fix the module instead

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@61447 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Metz 10 年之前
父节点
当前提交
b2227bb604
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/vector/Vlib/level_two.c

+ 1 - 1
lib/vector/Vlib/level_two.c

@@ -437,7 +437,7 @@ int Vect_get_centroid_area(const struct Map_info *Map, int centroid)
 
     check_level(Map);
     
-    if (centroid == 0 || Map->plus.Line[centroid]->type != GV_CENTROID)
+    if (Map->plus.Line[centroid]->type != GV_CENTROID)
 	return 0;
     
     topo = (struct P_topo_c *)Map->plus.Line[centroid]->topo;