Skip to content

Commit a6dc6ac

Browse files
committedOct 12, 2016
Fix first marker is drawn twice for marker line interval mode
(cherry-picked from 748d8ac)
1 parent 3c43bb5 commit a6dc6ac

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
@@ -948,7 +948,6 @@ void QgsMarkerLineSymbolLayerV2::renderPolylineInterval( const QPolygonF& points
948948

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

953952
QgsRenderContext& rc = context.renderContext();
954953
double interval = mInterval;
@@ -995,12 +994,6 @@ void QgsMarkerLineSymbolLayerV2::renderPolylineInterval( const QPolygonF& points
995994
mMarker->setLineAngle( l.angle() * 180 / M_PI );
996995
}
997996

998-
// draw first marker
999-
if ( first )
1000-
{
1001-
mMarker->renderPoint( lastPt, context.feature(), rc, -1, context.selected() );
1002-
first = false;
1003-
}
1004997

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

0 commit comments

Comments
 (0)
Please sign in to comment.