Skip to content
Permalink
Browse files

Fix data defined rendering for rulebased/inverted polygon renderers

fix #13318
  • Loading branch information
nyalldawson committed Sep 3, 2015
1 parent 086a007 commit bef84dc67650cd89dc0bad95596e3caeb7de0383
@@ -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 )
{
@@ -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;

0 comments on commit bef84dc

Please sign in to comment.
You can’t perform that action at this time.