Skip to content

Commit b9cf9ee

Browse files
committedOct 31, 2013
Don't remove layer coordinate transform info if layer is no longer present (layer could be switched off but still present)
1 parent 8372f7e commit b9cf9ee

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed
 

‎src/core/qgsmaprenderer.cpp

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1043,27 +1043,6 @@ void QgsMapRenderer::setLayerSet( const QStringList& layers )
10431043
{
10441044
QgsDebugMsg( QString( "Entering: %1" ).arg( layers.join( ", " ) ) );
10451045
mLayerSet = layers;
1046-
1047-
//remove all entries in mLayerCoordinateTransformInfo which are not part of the layer set
1048-
/*if ( mLayerCoordinateTransformInfo.size() > 0 )
1049-
{
1050-
QSet<QString> layerSet = layers.toSet();
1051-
QStringList removeEntries;
1052-
QHash< QString, QgsLayerCoordinateTransform >::const_iterator lctIt = mLayerCoordinateTransformInfo.constBegin();
1053-
for ( ; lctIt != mLayerCoordinateTransformInfo.constEnd(); ++lctIt )
1054-
{
1055-
if ( !layerSet.contains( lctIt.key() ) )
1056-
{
1057-
removeEntries.push_back( lctIt.key() );
1058-
}
1059-
}
1060-
1061-
QStringList::const_iterator rIt = removeEntries.constBegin();
1062-
for ( ; rIt != removeEntries.constEnd(); ++rIt )
1063-
{
1064-
mLayerCoordinateTransformInfo.remove( *rIt );
1065-
}
1066-
}*/
10671046
updateFullExtent();
10681047
}
10691048

0 commit comments

Comments
 (0)
Please sign in to comment.