Skip to content
Permalink
Browse files

Fix #9360 (layer not rendered when simplify geometry is activated)

Request's extent rectangle was being randomly overwritten as it was
just reference to a temporary object!
  • Loading branch information
wonder-sk committed Feb 19, 2014
1 parent d3e547c commit 5d4cf3086abe6bb205423771093cc5eebac6d5b8
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/qgsvectorlayer.cpp
@@ -698,7 +698,7 @@ bool QgsVectorLayer::draw( QgsRenderContext& rendererContext )
//do startRender before getFeatures to give renderers the possibility of querying features in the startRender method
mRendererV2->startRender( rendererContext, this );

QgsFeatureRequest& featureRequest = QgsFeatureRequest()
QgsFeatureRequest featureRequest = QgsFeatureRequest()
.setFilterRect( rendererContext.extent() )
.setSubsetOfAttributes( attributes );

0 comments on commit 5d4cf30

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