Skip to content
Permalink
Browse files

Don't remove layer coordinate transform info if layer is no longer pr…

…esent (layer could be switched off but still present)
  • Loading branch information
mhugent committed Oct 31, 2013
1 parent 8372f7e commit b9cf9eeaec067d8f8f3ff6a51906e242fc32b0be
Showing with 0 additions and 21 deletions.
  1. +0 −21 src/core/qgsmaprenderer.cpp
@@ -1043,27 +1043,6 @@ void QgsMapRenderer::setLayerSet( const QStringList& layers )
{
QgsDebugMsg( QString( "Entering: %1" ).arg( layers.join( ", " ) ) );
mLayerSet = layers;

//remove all entries in mLayerCoordinateTransformInfo which are not part of the layer set
/*if ( mLayerCoordinateTransformInfo.size() > 0 )
{
QSet<QString> layerSet = layers.toSet();
QStringList removeEntries;
QHash< QString, QgsLayerCoordinateTransform >::const_iterator lctIt = mLayerCoordinateTransformInfo.constBegin();
for ( ; lctIt != mLayerCoordinateTransformInfo.constEnd(); ++lctIt )
{
if ( !layerSet.contains( lctIt.key() ) )
{
removeEntries.push_back( lctIt.key() );
}
}
QStringList::const_iterator rIt = removeEntries.constBegin();
for ( ; rIt != removeEntries.constEnd(); ++rIt )
{
mLayerCoordinateTransformInfo.remove( *rIt );
}
}*/
updateFullExtent();
}

0 comments on commit b9cf9ee

Please sign in to comment.
You can’t perform that action at this time.