mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-06 00:07:29 -04:00
Fix extent writing in project file
This commit is contained in:
parent
5b5dc9545d
commit
21c5f3d36c
@ -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 ) );
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user