Skip to content
Permalink
Browse files

[2.5D renderer] Fix loading of saved symbology

  • Loading branch information
m-kuhn committed Feb 26, 2016
1 parent b8c620a commit 77a02ae2dd70a2e9bb06e104ff7a23c6e1ed767f
Showing with 6 additions and 1 deletion.
  1. +6 −1 src/core/symbology-ng/qgs25drenderer.cpp
@@ -124,9 +124,14 @@ QDomElement Qgs25DRenderer::save( QDomDocument& doc )

QgsFeatureRendererV2* Qgs25DRenderer::create( QDomElement& element )
{
Q_UNUSED( element )
Qgs25DRenderer* renderer = new Qgs25DRenderer();

QDomNodeList symbols = element.elementsByTagName( "symbol" );
if ( symbols.size() )
{
renderer->mSymbol.reset( QgsSymbolLayerV2Utils::loadSymbol( symbols.at( 0 ).toElement() ) );
}

return renderer;
}

0 comments on commit 77a02ae

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