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.

(cherry picked from commit 389149c)
  • Loading branch information
Hugo Mercier authored and nyalldawson committed Feb 1, 2019
1 parent e1febd0 commit 9abcd0e
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions src/core/symbology/qgssymbol.cpp
Expand Up @@ -927,14 +927,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 @@ -989,14 +982,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 9abcd0e

Please sign in to comment.