Browse Source

v.decimate (#331)

copy tables only when topology is available
Markus Metz 5 years ago
parent
commit
9b3f3b55cd
1 changed files with 5 additions and 5 deletions
  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)