浏览代码

v.decimate (#331)

copy tables only when topology is available
Markus Metz 5 年之前
父节点
当前提交
9b3f3b55cd
共有 1 个文件被更改,包括 5 次插入5 次删除
  1. 5 5
      vector/v.decimate/main.c

+ 5 - 5
vector/v.decimate/main.c

@@ -478,13 +478,13 @@ int main(int argc, char **argv)
 
     Vect_hist_command(&voutput);
 
-    if (write_context.write_cats == TRUE && !notab_flag->answer) {
-	copy_tabs(&vinput, &voutput);
-    }
-
     Vect_close(&vinput);
-    if (!notopo_flag->answer)
+    if (!notopo_flag->answer) {
         Vect_build(&voutput);
+	if (write_context.write_cats == TRUE && !notab_flag->answer) {
+	    copy_tabs(&vinput, &voutput);
+	}
+    }
     Vect_close(&voutput);
 
     if (do_grid_decimation)