Skip to content
Permalink
Browse files

Extent for vector layers should not be read from qgis project by default

  • Loading branch information
pblottiere committed Aug 21, 2017
1 parent 3b5236c commit 088acdba4089e31f9c124a3500f71de1d0089121
Showing with 0 additions and 6 deletions.
  1. +0 −6 src/core/qgsmaplayer.cpp
@@ -474,12 +474,6 @@ bool QgsMapLayer::readLayerXml( const QDomElement &layerElement, const QgsReadWr
setAutoRefreshInterval( layerElement.attribute( QStringLiteral( "autoRefreshTime" ), 0 ).toInt() );
setAutoRefreshEnabled( layerElement.attribute( QStringLiteral( "autoRefreshEnabled" ), QStringLiteral( "0" ) ).toInt() );

QDomNode extentNode = layerElement.namedItem( QStringLiteral( "extent" ) );
if ( !extentNode.isNull() )
{
setExtent( QgsXmlUtils::readRectangle( extentNode.toElement() ) );
}

// set name
mnl = layerElement.namedItem( QStringLiteral( "layername" ) );
mne = mnl.toElement();

0 comments on commit 088acdb

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