Skip to content

Commit

Permalink
Don't remove layer coordinate transform info if layer is no longer pr…
Browse files Browse the repository at this point in the history
…esent (layer could be switched off but still present)
  • Loading branch information
mhugent committed Oct 31, 2013
1 parent 8372f7e commit b9cf9ee
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions src/core/qgsmaprenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit b9cf9ee

Please sign in to comment.