[GRASS-SVN] r36644 - grass/branches/develbranch_6/vector/v.in.dxf

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Apr 8 20:56:29 EDT 2009


Author: hcho
Date: 2009-04-08 20:56:29 -0400 (Wed, 08 Apr 2009)
New Revision: 36644

Modified:
   grass/branches/develbranch_6/vector/v.in.dxf/add_line.c
Log:
Fixed line import

Modified: grass/branches/develbranch_6/vector/v.in.dxf/add_line.c
===================================================================
--- grass/branches/develbranch_6/vector/v.in.dxf/add_line.c	2009-04-09 00:52:08 UTC (rev 36643)
+++ grass/branches/develbranch_6/vector/v.in.dxf/add_line.c	2009-04-09 00:56:29 UTC (rev 36644)
@@ -14,6 +14,7 @@
 
     strcpy(layer, UNIDENTIFIED_LAYER);
 
+    zpnts[0] = zpnts[1] = 0.0;
     /* read in lines and process information until a 0 is read in */
     while ((code = dxf_get_code(dxf)) != 0) {
 	if (code == -2)
@@ -76,11 +77,8 @@
 	}
     }
 
-    if (arr_size == 2) {	/* have both start and stop */
-	if (!zflag)
-	    zpnts[0] = zpnts[1] = 0.0;
+    if (arr_size == 2)	/* have both start and stop */
 	write_line(Map, layer, arr_size);
-    }
 
     return 0;
 }



More information about the grass-commit mailing list