[GRASS-SVN] r61756 - grass/branches/releasebranch_7_0/lib/pngdriver
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Aug 27 04:54:24 PDT 2014
Author: neteler
Date: 2014-08-27 04:54:24 -0700 (Wed, 27 Aug 2014)
New Revision: 61756
Modified:
grass/branches/releasebranch_7_0/lib/pngdriver/Draw_line.c
Log:
pngdriver: complete backport of r59549
Modified: grass/branches/releasebranch_7_0/lib/pngdriver/Draw_line.c
===================================================================
--- grass/branches/releasebranch_7_0/lib/pngdriver/Draw_line.c 2014-08-27 11:53:49 UTC (rev 61755)
+++ grass/branches/releasebranch_7_0/lib/pngdriver/Draw_line.c 2014-08-27 11:54:24 UTC (rev 61756)
@@ -80,6 +80,10 @@
path.alloc = 5;
path.start = -1;
+ /* FIXME: rendering issues (#1283) */
+ dx = fabs(x2 - x1);
+ dy = fabs(y2 - y1);
+
if (dy > dx) {
path_move(&path, x1 - k, y1);
path_cont(&path, x1 + k, y1);
More information about the grass-commit
mailing list