[mapserver-commits] r11557 - trunk/mapserver
svn at osgeo.org
svn at osgeo.org
Wed Apr 13 11:56:55 EDT 2011
Author: tbonfort
Date: 2011-04-13 08:56:55 -0700 (Wed, 13 Apr 2011)
New Revision: 11557
Modified:
trunk/mapserver/mapgd.c
Log:
fix color on gd dashed line (#3833)
Modified: trunk/mapserver/mapgd.c
===================================================================
--- trunk/mapserver/mapgd.c 2011-04-13 15:29:52 UTC (rev 11556)
+++ trunk/mapserver/mapgd.c 2011-04-13 15:56:55 UTC (rev 11557)
@@ -348,7 +348,8 @@
brush = gdImageCreate(stroke->width, stroke->width);
gdImageColorAllocate(brush, gdImageRed(ip,0), gdImageGreen(ip, 0), gdImageBlue(ip, 0));
gdImageColorTransparent(brush,0);
- brush_fc = gdImageColorAllocate(brush, gdImageRed(ip,c), gdImageGreen(ip,c), gdImageBlue(ip,c));
+ brush_fc = gdImageColorAllocate(brush, gdImageRed(ip,stroke->color->pen),
+ gdImageGreen(ip,stroke->color->pen), gdImageBlue(ip,stroke->color->pen));
gdImageFilledEllipse(brush,MS_NINT(stroke->width/2),MS_NINT(stroke->width/2),
stroke->width,stroke->width, brush_fc);
gdImageSetBrush(ip, brush);
More information about the mapserver-commits
mailing list