Skip to content

Commit 91fafe4

Browse files
committed
msSLDApplySLD(): fix wrong index use (patch by wdc-rsat, fixes #5505)
1 parent e79be80 commit 91fafe4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mapogcsld.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ int msSLDApplySLD(mapObj *map, char *psSLDXML, int iLayer, char *pszStyleLayerNa
329329

330330
/* opacity for sld raster */
331331
if (GET_LAYER(map, i)->type == MS_LAYER_RASTER &&
332-
pasLayers[i].compositer && pasLayers[j].compositer->opacity != 100)
332+
pasLayers[j].compositer && pasLayers[j].compositer->opacity != 100)
333333
msSetLayerOpacity(GET_LAYER(map, i), pasLayers[j].compositer->opacity);
334334

335335
/* mark as auto-generate SLD */

0 commit comments

Comments
 (0)