Skip to content

Commit

Permalink
[2.5D renderer] Fix loading of saved symbology
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Feb 26, 2016
1 parent b8c620a commit 77a02ae
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/core/symbology-ng/qgs25drenderer.cpp
Expand Up @@ -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;
}

Expand Down

0 comments on commit 77a02ae

Please sign in to comment.