Skip to content
Permalink
Browse files

Add tests

  • Loading branch information
nyalldawson committed Dec 27, 2020
1 parent efb0806 commit 828c16117b87ddec8a5d24d55f9306fb21c0b457
@@ -427,7 +427,7 @@ void QgsVectorLayerRenderer::drawRenderer( QgsFeatureRenderer *renderer, QgsFeat

context.expressionContext().setFeature( fet );

bool sel = context.showSelection() && mSelectedFeatureIds.contains( fet.id() );
bool sel = isMainRenderer && context.showSelection() && mSelectedFeatureIds.contains( fet.id() );
bool drawMarker = isMainRenderer && ( mDrawVertexMarkers && context.drawEditingInformation() && ( !mVertexMarkerOnlyForSelection || sel ) );

// render feature
@@ -627,7 +627,7 @@ void QgsVectorLayerRenderer::drawRendererLevels( QgsFeatureRenderer *renderer, Q
return;
}

bool sel = context.showSelection() && mSelectedFeatureIds.contains( fit->id() );
bool sel = isMainRenderer && context.showSelection() && mSelectedFeatureIds.contains( fit->id() );
// maybe vertex markers should be drawn only during the last pass...
bool drawMarker = isMainRenderer && ( mDrawVertexMarkers && context.drawEditingInformation() && ( !mVertexMarkerOnlyForSelection || sel ) );

0 comments on commit 828c161

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