[mapguide-commits] r1382 - trunk/MgDev/Oem/gd/gd

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Tue Mar 27 12:39:53 EDT 2007


Author: waltweltonlair
Date: 2007-03-27 12:39:53 -0400 (Tue, 27 Mar 2007)
New Revision: 1382

Modified:
   trunk/MgDev/Oem/gd/gd/gd.c
Log:
Fixed a small typo in GD.  In gdImageFilledRectangle it does
a quick check to verify that the inputs are within the image
limits.  The check for the top left point was correct, but
the one for the bottom right point was using the wrong input
values.


Modified: trunk/MgDev/Oem/gd/gd/gd.c
===================================================================
--- trunk/MgDev/Oem/gd/gd/gd.c	2007-03-27 16:23:03 UTC (rev 1381)
+++ trunk/MgDev/Oem/gd/gd/gd.c	2007-03-27 16:39:53 UTC (rev 1382)
@@ -1935,12 +1935,12 @@
     window as it makes the tests in the for loops fail */
     if (x1 < 0)
         x1 = 0;
-    if (x1 > gdImageSX (im))
-        x1 = gdImageSX (im);
+    if (x2 > gdImageSX (im))
+        x2 = gdImageSX (im);
     if (y1 < 0)
         y1 = 0;
-    if (y1 > gdImageSY (im))
-        y1 = gdImageSY (im);
+    if (y2 > gdImageSY (im))
+        y2 = gdImageSY (im);
 
     for (y = y1; (y <= y2); y++)
     {



More information about the mapguide-commits mailing list