Skip to content
Permalink
Browse files

fix windows build

  • Loading branch information
jef-n committed Mar 29, 2019
1 parent 957c51e commit 939caaa77d6441b9f51d1d4993fbd415f15e5363
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/qgsproject.cpp
@@ -982,7 +982,7 @@ bool QgsProject::addLayer( const QDomElement &layerElem, QList<QDomNode> &broken
// because if it was, the newly created layer will not be added to the store and it would leak.
const QString layerId { layerElem.namedItem( QStringLiteral( "id" ) ).toElement().text() };
Q_ASSERT( ! layerId.isEmpty() );
const bool layerWasStored { layerStore()->mapLayer( layerId ) };
const bool layerWasStored { layerStore()->mapLayer( layerId ) != nullptr };

// have the layer restore state that is stored in Dom node
bool layerIsValid = mapLayer->readLayerXml( layerElem, context ) && mapLayer->isValid();

0 comments on commit 939caaa

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