Procházet zdrojové kódy

fix logic https://trac.osgeo.org/grass/changeset/55847

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@55849 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa před 12 roky
rodič
revize
ae837bcf20
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      lib/vector/Vlib/copy.c

+ 1 - 1
lib/vector/Vlib/copy.c

@@ -90,12 +90,12 @@ int Vect_copy_map_lines_field(struct Map_info *In, int field,
         
         
         /* get type of first feature from input vector map */
         /* get type of first feature from input vector map */
         Vect_rewind(In);
         Vect_rewind(In);
+        Vect_set_constraint_type(In, GV_POINT | GV_LINES);
         type = Vect_read_next_line(In, NULL, NULL);
         type = Vect_read_next_line(In, NULL, NULL);
         if (!(type & (GV_POINTS | GV_LINES)))
         if (!(type & (GV_POINTS | GV_LINES)))
             G_fatal_error(_("Unsupported feature type %d"), type);
             G_fatal_error(_("Unsupported feature type %d"), type);
             
             
         /* create feature table with given feature type */
         /* create feature table with given feature type */
-        Vect_set_constraint_type(In, GV_POINT | GV_LINES);
         Vect_write_line(Out, type, NULL, NULL);
         Vect_write_line(Out, type, NULL, NULL);
     }
     }