Skip to content

Commit 9486166

Browse files
committed
Fix first marker is drawn twice for marker line interval mode
(cherry-picked from 748d8ac)
1 parent bd5f979 commit 9486166

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

src/core/symbology-ng/qgslinesymbollayerv2.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -944,7 +944,6 @@ void QgsMarkerLineSymbolLayerV2::renderPolylineInterval( const QPolygonF& points
944944

945945
QPointF lastPt = points[0];
946946
double lengthLeft = 0; // how much is left until next marker
947-
bool first = mOffsetAlongLine ? false : true; //only draw marker at first vertex when no offset along line is set
948947

949948
QgsRenderContext& rc = context.renderContext();
950949
double interval = mInterval;
@@ -991,12 +990,6 @@ void QgsMarkerLineSymbolLayerV2::renderPolylineInterval( const QPolygonF& points
991990
mMarker->setLineAngle( l.angle() * 180 / M_PI );
992991
}
993992

994-
// draw first marker
995-
if ( first )
996-
{
997-
mMarker->renderPoint( lastPt, context.feature(), rc, -1, context.selected() );
998-
first = false;
999-
}
1000993

1001994
// while we're not at the end of line segment, draw!
1002995
while ( lengthLeft > painterUnitInterval )

0 commit comments

Comments
 (0)