Skip to content

Commit

Permalink
Fix data defined symbology for embedded layers
Browse files Browse the repository at this point in the history
  • Loading branch information
mhugent committed Mar 28, 2013
1 parent cb193d9 commit fdd8199
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/core/symbology-ng/qgslinesymbollayerv2.cpp
Expand Up @@ -710,6 +710,10 @@ QSet<QString> QgsMarkerLineSymbolLayerV2::usedAttributes() const
{
attributes.insert( *it );
}
if ( mMarker )
{
attributes.unite( mMarker->usedAttributes() );
}
return attributes;
}

Expand Down Expand Up @@ -791,7 +795,7 @@ void QgsMarkerLineSymbolLayerV2::startRender( QgsSymbolV2RenderContext& context
hints |= QgsSymbolV2::DataDefinedSizeScale;
mMarker->setRenderHints( hints );

mMarker->startRender( context.renderContext() );
mMarker->startRender( context.renderContext(), context.layer() );

//prepare expressions for data defined properties
prepareExpressions( context.layer() );
Expand Down

0 comments on commit fdd8199

Please sign in to comment.