Skip to content
Permalink
Browse files

Merge branch 'master' of github.com:qgis/Quantum-GIS

  • Loading branch information
marco
marco committed Sep 20, 2011
2 parents 8a9da0f + 820469f commit 5ad518d452cc80e9fcdf8fa14be3fcdc22bccd69
Showing with 11 additions and 1 deletion.
  1. +11 −1 src/core/composer/qgscomposermap.cpp
@@ -839,7 +839,17 @@ void QgsComposerMap::syncLayerSet()
return;
}

QStringList currentLayerSet = mMapRenderer->layerSet();
//if layer set is fixed, do a lookup in the layer registry to also find the non-visible layers
QStringList currentLayerSet;
if ( mKeepLayerSet )
{
currentLayerSet = QgsMapLayerRegistry::instance()->mapLayers().uniqueKeys();
}
else //only consider layers visible in the map
{
currentLayerSet = mMapRenderer->layerSet();
}

for ( int i = mLayerSet.size() - 1; i >= 0; --i )
{
if ( !currentLayerSet.contains( mLayerSet.at( i ) ) )

0 comments on commit 5ad518d

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