Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
fix type in map layer's exportNamedStyle() for min scale value
- Loading branch information
Showing
with
1 addition
and
1 deletion.
-
+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? |
|
|
{ |
|
|