[GRASS-SVN] r38639 - grass/trunk/vector/v.in.dxf

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Aug 8 06:04:37 EDT 2009


Author: mmetz
Date: 2009-08-08 06:04:37 -0400 (Sat, 08 Aug 2009)
New Revision: 38639

Modified:
   grass/trunk/vector/v.in.dxf/read_dxf.c
Log:
G_percent argument fix

Modified: grass/trunk/vector/v.in.dxf/read_dxf.c
===================================================================
--- grass/trunk/vector/v.in.dxf/read_dxf.c	2009-08-08 09:52:05 UTC (rev 38638)
+++ grass/trunk/vector/v.in.dxf/read_dxf.c	2009-08-08 10:04:37 UTC (rev 38639)
@@ -88,7 +88,7 @@
 
     if ((p = fgets(buf, size, dxf->fp))) {
 	dxf->pos += strlen(p);
-	perc = 1.0 * dxf->pos / dxf->size;
+	perc = (double) dxf->pos / dxf->size;
 	G_percent((int) (perc * 100.0), 100, dxf->percent);
 	G_squeeze(buf);
     }



More information about the grass-commit mailing list