소스 검색

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);
     Vect_hist_command(&voutput);
 
 
-    if (write_context.write_cats == TRUE && !notab_flag->answer) {
-	copy_tabs(&vinput, &voutput);
-    }
-
     Vect_close(&vinput);
     Vect_close(&vinput);
-    if (!notopo_flag->answer)
+    if (!notopo_flag->answer) {
         Vect_build(&voutput);
         Vect_build(&voutput);
+	if (write_context.write_cats == TRUE && !notab_flag->answer) {
+	    copy_tabs(&vinput, &voutput);
+	}
+    }
     Vect_close(&voutput);
     Vect_close(&voutput);
 
 
     if (do_grid_decimation)
     if (do_grid_decimation)