Skip to content

Commit 748d8ac

Browse files
committed
Fix first marker is drawn twice for marker line interval mode
1 parent c1cf896 commit 748d8ac

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

src/core/symbology-ng/qgslinesymbollayer.cpp

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

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

934933
QgsRenderContext& rc = context.renderContext();
935934
double interval = mInterval;
@@ -976,12 +975,6 @@ void QgsMarkerLineSymbolLayer::renderPolylineInterval( const QPolygonF& points,
976975
mMarker->setLineAngle( l.angle() * 180 / M_PI );
977976
}
978977

979-
// draw first marker
980-
if ( first )
981-
{
982-
mMarker->renderPoint( lastPt, context.feature(), rc, -1, context.selected() );
983-
first = false;
984-
}
985978

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

0 commit comments

Comments
 (0)