Skip to content
Permalink
Browse files

Fix read/write of style manager in vector tile layer (fixes #36018)

  • Loading branch information
wonder-sk authored and nyalldawson committed Jun 7, 2020
1 parent f8d2951 commit 44046d7b7be01343e415aa65276d8127d39c169a
Showing with 7 additions and 1 deletion.
  1. +7 −1 src/core/vectortile/qgsvectortilelayer.cpp
@@ -128,14 +128,20 @@ bool QgsVectorTileLayer::readXml( const QDomNode &layerNode, QgsReadWriteContext
mValid = loadDataSource();

QString errorMsg;
return readSymbology( layerNode, errorMsg, context );
if ( !readSymbology( layerNode, errorMsg, context ) )
return false;

readStyleManager( layerNode );
return true;
}

bool QgsVectorTileLayer::writeXml( QDomNode &layerNode, QDomDocument &doc, const QgsReadWriteContext &context ) const
{
QDomElement mapLayerNode = layerNode.toElement();
mapLayerNode.setAttribute( QStringLiteral( "type" ), QStringLiteral( "vector-tile" ) );

writeStyleManager( layerNode, doc );

QString errorMsg;
return writeSymbology( layerNode, doc, errorMsg, context );
}

0 comments on commit 44046d7

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