Skip to content

Commit

Permalink
avoid to prepare expression for SVG dynamic parameters (#40899)
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Jan 8, 2021
1 parent 0120e0f commit d81521e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/core/symbology/qgsmarkersymbollayer.cpp
Expand Up @@ -3550,8 +3550,7 @@ QSet<QString> QgsSvgMarkerSymbolLayer::usedAttributes( const QgsRenderContext &c
QMap<QString, QgsProperty>::const_iterator it = mParameters.constBegin();
for ( ; it != mParameters.constEnd(); ++it )
{
it.value().prepare( context.expressionContext() );
attrs.unite( it.value().referencedFields( context.expressionContext() ) );
attrs.unite( it.value().referencedFields( context.expressionContext(), true ) );
}

return attrs;
Expand Down

0 comments on commit d81521e

Please sign in to comment.