[mapserver-commits] r10288 - trunk/mapserver

svn at osgeo.org svn at osgeo.org
Tue Jul 6 10:51:46 EDT 2010


Author: warmerdam
Date: 2010-07-06 14:51:46 +0000 (Tue, 06 Jul 2010)
New Revision: 10288

Modified:
   trunk/mapserver/HISTORY.TXT
   trunk/mapserver/mapchart.c
Log:
Ensure ymax > ymin before calling gdImageFilledRectangle() (#3482)

Modified: trunk/mapserver/HISTORY.TXT
===================================================================
--- trunk/mapserver/HISTORY.TXT	2010-07-06 13:46:59 UTC (rev 10287)
+++ trunk/mapserver/HISTORY.TXT	2010-07-06 14:51:46 UTC (rev 10288)
@@ -256,6 +256,9 @@
 - Filter encoding: simple filters using propertyislike not applied properly
   #2720, #2840
 
+- Fix VBAR Chart production when using GD for rendering (#3482)
+
+
 Version 5.6.0 (2009-12-04):
 ---------------------------
 

Modified: trunk/mapserver/mapchart.c
===================================================================
--- trunk/mapserver/mapchart.c	2010-07-06 13:46:59 UTC (rev 10287)
+++ trunk/mapserver/mapchart.c	2010-07-06 14:51:46 UTC (rev 10288)
@@ -159,6 +159,12 @@
                     style->outlinecolor.green,
                     style->outlinecolor.blue);
         }
+        if( my > My )
+        {
+            float ty = my;
+            my = My;
+            My = ty;
+        }
         if(outlinecolor==-1) {
             gdImageFilledRectangle(image->img.gd,mx,my,Mx,My,color);
         } else {



More information about the mapserver-commits mailing list