Skip to content

Commit 21c5f3d

Browse files
committedSep 6, 2017
Fix extent writing in project file
1 parent 5b5dc95 commit 21c5f3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/core/qgsmaplayer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,7 @@ bool QgsMapLayer::writeLayerXml( QDomElement &layerElement, QDomDocument &docume
569569
layerElement.setAttribute( QStringLiteral( "maxScale" ), QString::number( maximumScale() ) );
570570
layerElement.setAttribute( QStringLiteral( "minScale" ), QString::number( minimumScale() ) );
571571

572-
if ( !mExtent.isNull() )
572+
if ( !extent().isNull() )
573573
{
574574
layerElement.appendChild( QgsXmlUtils::writeRectangle( mExtent, document ) );
575575
}

0 commit comments

Comments
 (0)
Please sign in to comment.