Skip to content

Commit

Permalink
Fix data defined overrides for sub symbols in line and marker fill
Browse files Browse the repository at this point in the history
are not being applied (fix #13707)

(cherry-picked from 2ac5933)
  • Loading branch information
nyalldawson committed Nov 18, 2015
1 parent 49c243c commit 6bb6929
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/symbology-ng/qgsfillsymbollayerv2.cpp
Expand Up @@ -2725,6 +2725,7 @@ void QgsLinePatternFillSymbolLayer::applyPattern( const QgsSymbolV2RenderContext
QgsMapToPixel mtp( context.renderContext().mapToPixel().mapUnitsPerPixel() / context.renderContext().rasterScaleFactor() );
lineRenderContext.setMapToPixel( mtp );
lineRenderContext.setForceVectorOutput( false );
lineRenderContext.setExpressionContext( context.renderContext().expressionContext() );

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

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

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

Expand Down

0 comments on commit 6bb6929

Please sign in to comment.