[mapserver-commits] r12899 - trunk/mapserver

svn at osgeo.org svn at osgeo.org
Wed Dec 14 12:17:59 EST 2011


Author: tbonfort
Date: 2011-12-14 09:17:59 -0800 (Wed, 14 Dec 2011)
New Revision: 12899

Modified:
   trunk/mapserver/mapdraw.c
Log:
fix bug with mask layers if png24 outputformat is not the current format, or was not set as the mapobj->imagetype

Modified: trunk/mapserver/mapdraw.c
===================================================================
--- trunk/mapserver/mapdraw.c	2011-12-14 15:54:33 UTC (rev 12898)
+++ trunk/mapserver/mapdraw.c	2011-12-14 17:17:59 UTC (rev 12899)
@@ -710,6 +710,7 @@
         int i;
         int origstatus, origlabelcache;
         altFormat =  msSelectOutputFormat(map, "png24");
+        msInitializeRendererVTable(altFormat);
         /* TODO: check the png24 format hasn't been tampered with, i.e. it's agg */
         maskLayer->maskimage= msImageCreate(image->width, image->height,altFormat,
               image->imagepath, image->imageurl, map->resolution, map->defresolution, NULL);



More information about the mapserver-commits mailing list