[GRASS-SVN] r41339 - grass/branches/develbranch_6/vector/v.split

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Mar 7 16:59:31 EST 2010


Author: martinl
Date: 2010-03-07 16:59:31 -0500 (Sun, 07 Mar 2010)
New Revision: 41339

Modified:
   grass/branches/develbranch_6/vector/v.split/main.c
Log:
be more precise in testing if input is 3d
(merge r41337 from trunk)


Modified: grass/branches/develbranch_6/vector/v.split/main.c
===================================================================
--- grass/branches/develbranch_6/vector/v.split/main.c	2010-03-07 21:48:13 UTC (rev 41338)
+++ grass/branches/develbranch_6/vector/v.split/main.c	2010-03-07 21:59:31 UTC (rev 41339)
@@ -80,7 +80,7 @@
 
     Vect_set_open_level(2);
     Vect_open_old(&In, in_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);
     Vect_hist_command(&Out);



More information about the grass-commit mailing list