[GRASS-SVN] r55849 - grass/trunk/lib/vector/Vlib

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Apr 17 02:37:08 PDT 2013


Author: martinl
Date: 2013-04-17 02:37:08 -0700 (Wed, 17 Apr 2013)
New Revision: 55849

Modified:
   grass/trunk/lib/vector/Vlib/copy.c
Log:
fix logic r55847


Modified: grass/trunk/lib/vector/Vlib/copy.c
===================================================================
--- grass/trunk/lib/vector/Vlib/copy.c	2013-04-17 09:36:32 UTC (rev 55848)
+++ grass/trunk/lib/vector/Vlib/copy.c	2013-04-17 09:37:08 UTC (rev 55849)
@@ -90,12 +90,12 @@
         
         /* get type of first feature from input vector map */
         Vect_rewind(In);
+        Vect_set_constraint_type(In, GV_POINT | GV_LINES);
         type = Vect_read_next_line(In, NULL, NULL);
         if (!(type & (GV_POINTS | GV_LINES)))
             G_fatal_error(_("Unsupported feature type %d"), type);
             
         /* create feature table with given feature type */
-        Vect_set_constraint_type(In, GV_POINT | GV_LINES);
         Vect_write_line(Out, type, NULL, NULL);
     }
   



More information about the grass-commit mailing list