Skip to content
Permalink
Browse files

fix type in map layer's exportNamedStyle() for min scale value

  • Loading branch information
nirvn committed Jan 17, 2018
1 parent f274456 commit 8c74c5b3d1f3fb6150b34cebec2c8f18e5b23182
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/qgsmaplayer.cpp
@@ -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?
{

0 comments on commit 8c74c5b

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