瀏覽代碼

Vlib: fix Vect_remove_small_areas_nat()

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@58647 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Metz 11 年之前
父節點
當前提交
ab2c6b3627
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      lib/vector/Vlib/remove_areas.c

+ 2 - 1
lib/vector/Vlib/remove_areas.c

@@ -17,7 +17,7 @@
 #include <grass/vector.h>
 #include <grass/glocale.h>
 
-/* #define DEGUG_RMAREA */
+#define DEGUG_RMAREA
 
 int Vect_remove_small_areas_nat(struct Map_info *, double,
                                 struct Map_info *, double *);
@@ -562,6 +562,7 @@ Vect_remove_small_areas_nat(struct Map_info *Map, double thresh,
 		    new_isle = Vect_build_line_area(Map, abs(line), (line > 0 ? GV_RIGHT : GV_LEFT));
 		    if (new_isle < 0) {
 			Vect_list_append(IList, -new_isle);
+		    }
 		    else {
 			/* should not happen */
 			G_warning(_("Failed to build new isle"));