[GRASS-SVN] r59547 - grass/trunk/lib/pngdriver

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Apr 1 20:42:22 PDT 2014


Author: hamish
Date: 2014-04-01 20:42:22 -0700 (Tue, 01 Apr 2014)
New Revision: 59547

Modified:
   grass/trunk/lib/pngdriver/Line_width.c
Log:
bugfix: line width wasn't working in the PNG driver

Modified: grass/trunk/lib/pngdriver/Line_width.c
===================================================================
--- grass/trunk/lib/pngdriver/Line_width.c	2014-04-01 21:39:32 UTC (rev 59546)
+++ grass/trunk/lib/pngdriver/Line_width.c	2014-04-02 03:42:22 UTC (rev 59547)
@@ -1,9 +1,7 @@
 #include <math.h>
 #include "pngdriver.h"
 
-int linewidth;
-
 void PNG_Line_width(double width)
 {
-    linewidth = (width < 0 ? 0 : (int) floor(width + 0.5));
+    png.linewidth = (width < 0 ? 0 : (int) floor(width + 0.5));
 }



More information about the grass-commit mailing list