[mapserver-commits] r11591 - trunk/mapserver
svn at osgeo.org
svn at osgeo.org
Mon Apr 18 06:13:01 EDT 2011
Author: tbonfort
Date: 2011-04-18 03:13:01 -0700 (Mon, 18 Apr 2011)
New Revision: 11591
Modified:
trunk/mapserver/mapcairo.c
Log:
revert to older version of startLayer() endLayer() as they can be needed for denoting actual layers in pdf or svg output
Modified: trunk/mapserver/mapcairo.c
===================================================================
--- trunk/mapserver/mapcairo.c 2011-04-18 09:00:03 UTC (rev 11590)
+++ trunk/mapserver/mapcairo.c 2011-04-18 10:13:01 UTC (rev 11591)
@@ -667,19 +667,15 @@
int startLayerVectorCairo(imageObj *img, mapObj *map, layerObj *layer) {
- if(layer->opacity != 100) {
- cairo_renderer *r = CAIRO_RENDERER(img);
- cairo_push_group (r->cr);
- }
+ cairo_renderer *r = CAIRO_RENDERER(img);
+ cairo_push_group (r->cr);
return MS_SUCCESS;
}
int closeLayerVectorCairo(imageObj *img, mapObj *map, layerObj *layer) {
- if(layer->opacity != 100) {
- cairo_renderer *r = CAIRO_RENDERER(img);
- cairo_pop_group_to_source (r->cr);
- cairo_paint_with_alpha (r->cr, layer->opacity*0.01);
- }
+ cairo_renderer *r = CAIRO_RENDERER(img);
+ cairo_pop_group_to_source (r->cr);
+ cairo_paint_with_alpha (r->cr, layer->opacity*0.01);
return MS_SUCCESS;
}
More information about the mapserver-commits
mailing list