Skip to content

Commit 8215183

Browse files
committed
Merge pull request #1057 from elpaso/master
Fix #9306
2 parents 0b10498 + 6eb72c7 commit 8215183

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mapserver/qgswmsserver.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -2174,7 +2174,7 @@ void QgsWMSServer::applyOpacities( const QStringList& layerList, QList< QPair< Q
21742174
QList< QPair< QgsMapLayer*, int > > layerOpacityList;
21752175
QStringList::const_iterator oIt = opacityList.constBegin();
21762176
QStringList::const_iterator lIt = layerList.constBegin();
2177-
for ( ; oIt != opacityList.constEnd(); ++oIt, ++lIt )
2177+
for ( ; oIt != opacityList.constEnd() && lIt != layerList.constEnd(); ++oIt, ++lIt )
21782178
{
21792179
//get layer list for
21802180
int opacity = oIt->toInt();

0 commit comments

Comments
 (0)