Merge pull request #9036 from mhugo/fix_19909

Fix vertex marker display for multipolygon (fixes #19909)
This commit is contained in:
Hugo Mercier 2019-01-31 10:21:28 +01:00 committed by GitHub
commit c3819e88dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -935,18 +935,11 @@ void QgsSymbol::renderFeature( const QgsFeature &feature, QgsRenderContext &cont
static_cast<QgsLineSymbol *>( this )->renderPolyline( pts, &feature, context, layer, selected );
if ( drawVertexMarker && !usingSegmentizedGeometry )
{
if ( i == 0 )
{
markers = pts;
}
else
{
markers << pts;
}
}
}
}
break;
case QgsWkbTypes::MultiSurface:
@ -997,15 +990,8 @@ void QgsSymbol::renderFeature( const QgsFeature &feature, QgsRenderContext &cont
static_cast<QgsFillSymbol *>( this )->renderPolygon( pts, ( !holes.isEmpty() ? &holes : nullptr ), &feature, context, layer, selected );
if ( drawVertexMarker && !usingSegmentizedGeometry )
{
if ( i == 0 )
{
markers = pts;
}
else
{
markers << pts;
}
Q_FOREACH ( const QPolygonF &hole, holes )
{