[mapserver-commits] r7758 - trunk/mapserver

svn at osgeo.org svn at osgeo.org
Fri Jun 27 03:28:15 EDT 2008


Author: tbonfort
Date: 2008-06-27 03:28:15 -0400 (Fri, 27 Jun 2008)
New Revision: 7758

Modified:
   trunk/mapserver/HISTORY.TXT
   trunk/mapserver/maputil.c
Log:
fix a bug for offset lines with agg, when the first segment was horizontal (#2659)

Modified: trunk/mapserver/HISTORY.TXT
===================================================================
--- trunk/mapserver/HISTORY.TXT	2008-06-27 07:22:30 UTC (rev 7757)
+++ trunk/mapserver/HISTORY.TXT	2008-06-27 07:28:15 UTC (rev 7758)
@@ -11,6 +11,8 @@
 
 Current Version (SVN trunk):
 ----------------------------
+- maputil.c: fix a bug for offset lines with agg, when the first segment 
+  was horizontal (#2659)
 
 Version 5.2.0-beta3 (2008-06-26):
 ---------------------------------

Modified: trunk/mapserver/maputil.c
===================================================================
--- trunk/mapserver/maputil.c	2008-06-27 07:22:30 UTC (rev 7757)
+++ trunk/mapserver/maputil.c	2008-06-27 07:28:15 UTC (rev 7758)
@@ -1495,8 +1495,8 @@
                 /* offset line points computation */
                 if(first==1) { /* first point */
                     first = 0;
-                    ret->line[i].point[idx].x = p->line[i].point[j-1].x+ox;
-                    ret->line[i].point[idx].y = p->line[i].point[j-1].y+oy;
+                    x = ret->line[i].point[idx].x = p->line[i].point[j-1].x+ox;
+                    y = ret->line[i].point[idx].y = p->line[i].point[j-1].y+oy;
                     idx++;
                 } else { /* middle points */
                     if((dx*dx+dy*dy)>limit){ /* if the points are too close */



More information about the mapserver-commits mailing list