Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[composer] Fix locked raster layers do not restore when loading
project (fix #16517)
  • Loading branch information
nyalldawson committed May 17, 2017
1 parent e474bd2 commit cc2e68d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/composer/qgscomposermap.cpp
Expand Up @@ -35,7 +35,7 @@
#include "qgsexpression.h"
#include "qgsvisibilitypresetcollection.h"
#include "qgsannotation.h"
#include "qgsvectorlayerref.h"
#include "qgsmaplayerref.h"

#include "qgslabel.h"
#include "qgslabelattributes.h"
Expand Down Expand Up @@ -1326,7 +1326,7 @@ bool QgsComposerMap::writeXML( QDomElement& elem, QDomDocument & doc ) const
QDomElement layerSetElem = doc.createElement( "LayerSet" );
Q_FOREACH ( const QString &layerId, mLayerSet )
{
QgsVectorLayerRef layerRef( layerId );
QgsMapLayerRef layerRef( layerId );
layerRef.resolve();

if ( !layerRef )
Expand Down

0 comments on commit cc2e68d

Please sign in to comment.