Skip to content
Permalink
Browse files

don't save extents to style (fixes #15026, followup 92aed6e and d690d72)

  • Loading branch information
jef-n committed Jun 14, 2016
1 parent a05b2ad commit 6d1e55420664125b2ed91fc69703c5d08aecf8ba
Showing with 0 additions and 11 deletions.
  1. +0 −11 src/core/qgsmaplayer.cpp
@@ -1230,12 +1230,6 @@ bool QgsMapLayer::importNamedStyle( QDomDocument& myDocument, QString& myErrorMe
setMinimumScale( myRoot.attribute( "minimumScale" ).toDouble() );
setMaximumScale( myRoot.attribute( "maximumScale" ).toDouble() );

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

#if 0
//read transparency level
QDomNode transparencyNode = myRoot.namedItem( "transparencyLevelInt" );
@@ -1265,11 +1259,6 @@ void QgsMapLayer::exportNamedStyle( QDomDocument &doc, QString &errorMsg )
myRootNode.setAttribute( "minimumScale", QString::number( minimumScale() ) );
myRootNode.setAttribute( "maximumScale", QString::number( maximumScale() ) );

if ( !mExtent.isNull() )
{
myRootNode.appendChild( QgsXmlUtils::writeRectangle( mExtent, myDocument ) );
}

#if 0
// <transparencyLevelInt>
QDomElement transparencyLevelIntElement = myDocument.createElement( "transparencyLevelInt" );

0 comments on commit 6d1e554

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