mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -04:00
Fix first marker is drawn twice for marker line interval mode
This commit is contained in:
parent
c1cf896c1a
commit
748d8acddb
@ -929,7 +929,6 @@ void QgsMarkerLineSymbolLayer::renderPolylineInterval( const QPolygonF& points,
|
||||
|
||||
QPointF lastPt = points[0];
|
||||
double lengthLeft = 0; // how much is left until next marker
|
||||
bool first = mOffsetAlongLine ? false : true; //only draw marker at first vertex when no offset along line is set
|
||||
|
||||
QgsRenderContext& rc = context.renderContext();
|
||||
double interval = mInterval;
|
||||
@ -976,12 +975,6 @@ void QgsMarkerLineSymbolLayer::renderPolylineInterval( const QPolygonF& points,
|
||||
mMarker->setLineAngle( l.angle() * 180 / M_PI );
|
||||
}
|
||||
|
||||
// draw first marker
|
||||
if ( first )
|
||||
{
|
||||
mMarker->renderPoint( lastPt, context.feature(), rc, -1, context.selected() );
|
||||
first = false;
|
||||
}
|
||||
|
||||
// while we're not at the end of line segment, draw!
|
||||
while ( lengthLeft > painterUnitInterval )
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
Loading…
x
Reference in New Issue
Block a user