Skip to content
Permalink
Browse files
Inverted polygons: fix feature count (call start render even without …
…painter)
  • Loading branch information
Hugo Mercier committed Jun 10, 2014
1 parent 1d1eed4 commit 85c57bcfb5874b0b95ba6d08148174621cc97db4
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/core/symbology-ng/qgsinvertedpolygonrenderer.cpp
@@ -69,6 +69,9 @@ void QgsInvertedPolygonRenderer::startRender( QgsRenderContext& context, const Q
return;
}

// first call start render on the sub renderer
mSubRenderer->startRender( context, fields );

mFeaturesCategories.clear();
mFeatureDecorations.clear();
mFields = fields;
@@ -114,8 +117,6 @@ void QgsInvertedPolygonRenderer::startRender( QgsRenderContext& context, const Q

mExtentPolygon.clear();
mExtentPolygon.append( exteriorRing );

mSubRenderer->startRender( mContext, fields );
}

bool QgsInvertedPolygonRenderer::renderFeature( QgsFeature& feature, QgsRenderContext& context, int layer, bool selected, bool drawVertexMarker )

0 comments on commit 85c57bc

Please sign in to comment.