[mapserver-commits] r11254 - trunk/mapserver

svn at osgeo.org svn at osgeo.org
Fri Mar 18 14:43:33 EDT 2011


Author: tbonfort
Date: 2011-03-18 11:43:33 -0700 (Fri, 18 Mar 2011)
New Revision: 11254

Modified:
   trunk/mapserver/mapogcsld.c
Log:
fix type in sld writing related to opacity->coloralpha changes


Modified: trunk/mapserver/mapogcsld.c
===================================================================
--- trunk/mapserver/mapogcsld.c	2011-03-18 18:33:04 UTC (rev 11253)
+++ trunk/mapserver/mapogcsld.c	2011-03-18 18:43:33 UTC (rev 11254)
@@ -3898,10 +3898,10 @@
     if(psStyle->color.alpha != 255 && psStyle->color.alpha!=-1) {
       snprintf(szTmp, sizeof(szTmp),
                "<%s name=\"stroke-opacity\">%.2f</%s>\n", 
-               sCssParam, (float)psStyle->color.alpha/255, sCssParam);
+               sCssParam, (float)psStyle->color.alpha/255.0, sCssParam);
+      pszSLD = msStringConcatenate(pszSLD, szTmp);
     }
 
-    pszSLD = msStringConcatenate(pszSLD, szTmp);
                             
     nSymbol = -1;
 
@@ -4035,8 +4035,8 @@
            snprintf(szTmp, sizeof(szTmp),
                  "<%s name=\"fill-opacity\">%.2f</%s>\n", 
                  sCssParam, (float)psStyle->color.alpha/255, sCssParam);
+           pszSLD = msStringConcatenate(pszSLD, szTmp);
         }
-        pszSLD = msStringConcatenate(pszSLD, szTmp);
 
 
         snprintf(szTmp, sizeof(szTmp), "</%sFill>\n",  sNameSpace);



More information about the mapserver-commits mailing list