[mapserver-commits] r13295 - trunk/mapserver

svn at osgeo.org svn at osgeo.org
Fri Mar 23 04:13:13 EDT 2012


Author: tbonfort
Date: 2012-03-23 01:13:13 -0700 (Fri, 23 Mar 2012)
New Revision: 13295

Modified:
   trunk/mapserver/maputil.c
Log:
also set alpha back to 255 if opacity==100 (#4260)


Modified: trunk/mapserver/maputil.c
===================================================================
--- trunk/mapserver/maputil.c	2012-03-23 08:09:45 UTC (rev 13294)
+++ trunk/mapserver/maputil.c	2012-03-23 08:13:13 UTC (rev 13295)
@@ -176,7 +176,7 @@
         style->outlinewidth = 1;
         bindDoubleAttribute(&style->outlinewidth, shape->values[style->bindings[MS_STYLE_BINDING_OUTLINEWIDTH].index]);
     }
-    if(style->opacity < 100) {
+    if(style->opacity < 100 || style->color.alpha != 255 ) {
       int alpha;
       alpha = MS_NINT(style->opacity*2.55);
       style->color.alpha = alpha;



More information about the mapserver-commits mailing list