Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix type in map layer's exportNamedStyle() for min scale value
  • Loading branch information
nirvn committed Jan 17, 2018
1 parent f274456 commit 8c74c5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/qgsmaplayer.cpp
Expand Up @@ -1348,7 +1348,7 @@ void QgsMapLayer::exportNamedStyle( QDomDocument &doc, QString &errorMsg ) const

myRootNode.setAttribute( QStringLiteral( "hasScaleBasedVisibilityFlag" ), hasScaleBasedVisibility() ? 1 : 0 );
myRootNode.setAttribute( QStringLiteral( "maxScale" ), QString::number( maximumScale() ) );
myRootNode.setAttribute( QStringLiteral( "mincale" ), QString::number( minimumScale() ) );
myRootNode.setAttribute( QStringLiteral( "minScale" ), QString::number( minimumScale() ) );

if ( !writeSymbology( myRootNode, myDocument, errorMsg, QgsReadWriteContext() ) ) // TODO: support relative paths in QML?
{
Expand Down

0 comments on commit 8c74c5b

Please sign in to comment.