mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-09 00:08:52 -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( "maxScale" ), QString::number( maximumScale() ) );
|
||||||
layerElement.setAttribute( QStringLiteral( "minScale" ), QString::number( minimumScale() ) );
|
layerElement.setAttribute( QStringLiteral( "minScale" ), QString::number( minimumScale() ) );
|
||||||
|
|
||||||
if ( !mExtent.isNull() )
|
if ( !extent().isNull() )
|
||||||
{
|
{
|
||||||
layerElement.appendChild( QgsXmlUtils::writeRectangle( mExtent, document ) );
|
layerElement.appendChild( QgsXmlUtils::writeRectangle( mExtent, document ) );
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user