Skip to content

Commit

Permalink
Fix data defined rendering for rulebased/inverted polygon renderers
Browse files Browse the repository at this point in the history
fix #13318
  • Loading branch information
nyalldawson committed Sep 3, 2015
1 parent 086a007 commit bef84dc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/symbology-ng/qgsinvertedpolygonrenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,10 @@ void QgsInvertedPolygonRenderer::stopRender( QgsRenderContext& context )
feat.setGeometry( QgsGeometry::fromMultiPolygon( finalMulti ) );
}
if ( feat.constGeometry() )
{
mContext.expressionContext().setFeature( feat );
mSubRenderer->renderFeature( feat, mContext );
}
}
for ( FeatureCategoryVector::iterator cit = mFeaturesCategories.begin(); cit != mFeaturesCategories.end(); ++cit )
{
Expand Down
1 change: 1 addition & 0 deletions src/core/symbology-ng/qgsrulebasedrendererv2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -859,6 +859,7 @@ void QgsRuleBasedRendererV2::stopRender( QgsRenderContext& context )
// go through all jobs at the level
foreach ( const RenderJob* job, level.jobs )
{
context.expressionContext().setFeature( job->ftr.feat );
//QgsDebugMsg(QString("job fid %1").arg(job->f->id()));
// render feature - but only with symbol layers with specified zIndex
QgsSymbolV2* s = job->symbol;
Expand Down

0 comments on commit bef84dc

Please sign in to comment.