Skip to content

Commit

Permalink
Fix vertex marker display for multipolygon (fixes #19909)
Browse files Browse the repository at this point in the history
The i == 0 test was wrong, and a test is actually not needed.
  • Loading branch information
Hugo Mercier committed Jan 30, 2019
1 parent 3769faa commit 389149c
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions src/core/symbology/qgssymbol.cpp
Expand Up @@ -936,14 +936,7 @@ void QgsSymbol::renderFeature( const QgsFeature &feature, QgsRenderContext &cont

if ( drawVertexMarker && !usingSegmentizedGeometry )
{
if ( i == 0 )
{
markers = pts;
}
else
{
markers << pts;
}
markers << pts;
}
}
}
Expand Down Expand Up @@ -998,14 +991,7 @@ void QgsSymbol::renderFeature( const QgsFeature &feature, QgsRenderContext &cont

if ( drawVertexMarker && !usingSegmentizedGeometry )
{
if ( i == 0 )
{
markers = pts;
}
else
{
markers << pts;
}
markers << pts;

Q_FOREACH ( const QPolygonF &hole, holes )
{
Expand Down

0 comments on commit 389149c

Please sign in to comment.