Skip to content

Commit 6bb6929

Browse files
committed
Fix data defined overrides for sub symbols in line and marker fill
are not being applied (fix #13707) (cherry-picked from 2ac5933)
1 parent 49c243c commit 6bb6929

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/core/symbology-ng/qgsfillsymbollayerv2.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -2725,6 +2725,7 @@ void QgsLinePatternFillSymbolLayer::applyPattern( const QgsSymbolV2RenderContext
27252725
QgsMapToPixel mtp( context.renderContext().mapToPixel().mapUnitsPerPixel() / context.renderContext().rasterScaleFactor() );
27262726
lineRenderContext.setMapToPixel( mtp );
27272727
lineRenderContext.setForceVectorOutput( false );
2728+
lineRenderContext.setExpressionContext( context.renderContext().expressionContext() );
27282729

27292730
fillLineSymbol->startRender( lineRenderContext, context.fields() );
27302731

@@ -3138,6 +3139,7 @@ void QgsPointPatternFillSymbolLayer::applyPattern( const QgsSymbolV2RenderContex
31383139
QgsMapToPixel mtp( context.renderContext().mapToPixel().mapUnitsPerPixel() / context.renderContext().rasterScaleFactor() );
31393140
pointRenderContext.setMapToPixel( mtp );
31403141
pointRenderContext.setForceVectorOutput( false );
3142+
pointRenderContext.setExpressionContext( context.renderContext().expressionContext() );
31413143

31423144
mMarkerSymbol->startRender( pointRenderContext, context.fields() );
31433145

0 commit comments

Comments
 (0)