Skip to content
Permalink
Browse files
Point displacement renderer: fix loading embeded renderers
  • Loading branch information
marco committed Nov 21, 2011
1 parent 8496494 commit ec7e159b0fe90344a29f38a9b363fcec86afad14
Showing with 1 addition and 7 deletions.
  1. +1 −7 src/core/symbology-ng/qgspointdisplacementrenderer.cpp
@@ -18,7 +18,6 @@
#include "qgspointdisplacementrenderer.h"
#include "qgsgeometry.h"
#include "qgslogger.h"
#include "qgsrendererv2registry.h"
#include "qgsspatialindex.h"
#include "qgssymbolv2.h"
#include "qgssymbollayerv2utils.h"
@@ -276,12 +275,7 @@ QgsFeatureRendererV2* QgsPointDisplacementRenderer::create( QDomElement& symbolo
QDomElement embeddedRendererElem = symbologyElem.firstChildElement( "renderer-v2" );
if ( !embeddedRendererElem.isNull() )
{
QString rendererName = embeddedRendererElem.attribute( "type" );
QgsRendererV2AbstractMetadata* metaData = QgsRendererV2Registry::instance()->rendererMetadata( rendererName );
if ( metaData )
{
r->setEmbeddedRenderer( metaData->createRenderer( embeddedRendererElem ) );
}
r->setEmbeddedRenderer( QgsFeatureRendererV2::load( embeddedRendererElem ) );
}

//center symbol

0 comments on commit ec7e159

Please sign in to comment.