瀏覽代碼

be more precise in testing if input is 3d

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@41337 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 15 年之前
父節點
當前提交
9e839c3186
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      vector/v.split/main.c

+ 1 - 1
vector/v.split/main.c

@@ -83,7 +83,7 @@ int main(int argc, char *argv[])
     Vect_open_old2(&In, in_opt->answer, "", layer_opt->answer);
     layer = Vect_get_field_number(&In, layer_opt->answer);
     
-    Vect_open_new(&Out, out_opt->answer, Vect_is_3d(&In));
+    Vect_open_new(&Out, out_opt->answer, Vect_is_3d(&In) ? WITH_Z : WITHOUT_Z);
     
     Vect_copy_head_data(&In, &Out);
     Vect_hist_copy(&In, &Out);