Skip to content
Permalink
Browse files

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

  • Loading branch information
jef-n authored and rldhont committed Jun 14, 2016
1 parent 89a1f5b commit e1d54029c6489ac619b42ae394d6857a527e88ad
Showing with 0 additions and 11 deletions.
  1. +0 −11 src/core/qgsmaplayer.cpp
@@ -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" );
@@ -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" );

0 comments on commit e1d5402

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