Skip to content

Commit 9abcd0e

Browse files
Hugo Merciernyalldawson
authored andcommitted
Fix vertex marker display for multipolygon (fixes #19909)
The i == 0 test was wrong, and a test is actually not needed. (cherry picked from commit 389149c)
1 parent e1febd0 commit 9abcd0e

File tree

1 file changed

+2
-16
lines changed

1 file changed

+2
-16
lines changed

src/core/symbology/qgssymbol.cpp

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -927,14 +927,7 @@ void QgsSymbol::renderFeature( const QgsFeature &feature, QgsRenderContext &cont
927927

928928
if ( drawVertexMarker && !usingSegmentizedGeometry )
929929
{
930-
if ( i == 0 )
931-
{
932-
markers = pts;
933-
}
934-
else
935-
{
936-
markers << pts;
937-
}
930+
markers << pts;
938931
}
939932
}
940933
}
@@ -989,14 +982,7 @@ void QgsSymbol::renderFeature( const QgsFeature &feature, QgsRenderContext &cont
989982

990983
if ( drawVertexMarker && !usingSegmentizedGeometry )
991984
{
992-
if ( i == 0 )
993-
{
994-
markers = pts;
995-
}
996-
else
997-
{
998-
markers << pts;
999-
}
985+
markers << pts;
1000986

1001987
Q_FOREACH ( const QPolygonF &hole, holes )
1002988
{

0 commit comments

Comments
 (0)