Skip to content

Commit

Permalink
don't save extents to style (fixes #15026, followup 92aed6e and d690d72)
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n authored and rldhont committed Jun 15, 2016
1 parent 89a1f5b commit e1d5402
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/core/qgsmaplayer.cpp
Expand Up @@ -1228,12 +1228,6 @@ bool QgsMapLayer::importNamedStyle( QDomDocument& myDocument, QString& myErrorMe
setMinimumScale( myRoot.attribute( "minimumScale" ).toFloat() );
setMaximumScale( myRoot.attribute( "maximumScale" ).toFloat() );

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

#if 0
//read transparency level
QDomNode transparencyNode = myRoot.namedItem( "transparencyLevelInt" );
Expand Down Expand Up @@ -1263,11 +1257,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" );
Expand Down

0 comments on commit e1d5402

Please sign in to comment.