Skip to content
Permalink
Browse files

Fix extent writing in project file

  • Loading branch information
pblottiere committed Aug 21, 2017
1 parent 5b5dc95 commit 21c5f3d36cb04ea4952ec9aaddce18e65de4189a
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/qgsmaplayer.cpp
@@ -569,7 +569,7 @@ bool QgsMapLayer::writeLayerXml( QDomElement &layerElement, QDomDocument &docume
layerElement.setAttribute( QStringLiteral( "maxScale" ), QString::number( maximumScale() ) );
layerElement.setAttribute( QStringLiteral( "minScale" ), QString::number( minimumScale() ) );

if ( !mExtent.isNull() )
if ( !extent().isNull() )
{
layerElement.appendChild( QgsXmlUtils::writeRectangle( mExtent, document ) );
}

0 comments on commit 21c5f3d

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