Quellcode durchsuchen

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 vor 10 Jahren
Ursprung
Commit
b2227bb604
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  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;