[mapserver-commits] r10783 - trunk/mapserver

svn at osgeo.org svn at osgeo.org
Tue Dec 7 11:26:40 EST 2010


Author: tbonfort
Date: 2010-12-07 08:26:40 -0800 (Tue, 07 Dec 2010)
New Revision: 10783

Modified:
   trunk/mapserver/maprendering.c
Log:
scale polygon outlines widths 
closes #3632

Modified: trunk/mapserver/maprendering.c
===================================================================
--- trunk/mapserver/maprendering.c	2010-12-07 16:23:41 UTC (rev 10782)
+++ trunk/mapserver/maprendering.c	2010-12-07 16:26:40 UTC (rev 10783)
@@ -495,6 +495,8 @@
                s.color = &style->outlinecolor;
                s.color->alpha = style->color.alpha;
                s.width = (style->width == 0)?scalefactor:style->width*scalefactor;
+               s.width = MS_MIN(s.width, style->maxwidth);
+               s.width = MS_MAX(s.width, style->minwidth);  
                ret = renderer->renderLine(image,offsetPolygon,&s);
             }
             goto cleanup; /*finished plain polygon*/



More information about the mapserver-commits mailing list