Skip to content

Commit

Permalink
prepare before getting referenced fields
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Jan 7, 2021
1 parent cfc8f03 commit 5e2cbab
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/symbology/qgsmarkersymbollayer.cpp
Expand Up @@ -3549,7 +3549,10 @@ 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() ) );
}

return attrs;
}

0 comments on commit 5e2cbab

Please sign in to comment.