Skip to content
Permalink
Browse files

Merge pull request #2880 from rouault/avoid_busy_loop_in_QgsVectorLay…

…erRenderer_drawRendererV2

QgsVectorLayerRenderer::drawRendererV2(): make it cancellable in all …
  • Loading branch information
jef-n committed Mar 7, 2016
2 parents ed3cb12 + b1f5b5f commit 7ade582615650585e127d0b53a803407cd8e9fe6
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/core/qgsvectorlayerrenderer.cpp
@@ -295,15 +295,15 @@ void QgsVectorLayerRenderer::drawRendererV2( QgsFeatureIterator& fit )
{
try
{
if ( !fet.constGeometry() )
continue; // skip features without geometry

if ( mContext.renderingStopped() )
{
QgsDebugMsg( QString( "Drawing of vector layer %1 cancelled." ).arg( layerID() ) );
break;
}

if ( !fet.constGeometry() )
continue; // skip features without geometry

mContext.expressionContext().setFeature( fet );

bool sel = mContext.showSelection() && mSelectedFeatureIds.contains( fet.id() );

0 comments on commit 7ade582

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