Skip to content
Permalink
Browse files
Fix @geometry_point_num value for marker lines following InnerVertices
change
  • Loading branch information
nyalldawson committed Nov 17, 2021
1 parent fdc895e commit ad4810caf49ca860f23e5db54e96911803aa1016
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/core/symbology/qgslinesymbollayer.cpp
@@ -1880,6 +1880,8 @@ void QgsTemplatedLineSymbolLayerBase::renderPolylineVertex( const QPolygonF &poi
return;
}

int pointNum = 0;

switch ( placement )
{
case Qgis::MarkerLinePlacement::FirstVertex:
@@ -1892,13 +1894,15 @@ void QgsTemplatedLineSymbolLayerBase::renderPolylineVertex( const QPolygonF &poi
case Qgis::MarkerLinePlacement::LastVertex:
{
i = points.count() - 1;
pointNum = i;
maxCount = points.count();
break;
}

case Qgis::MarkerLinePlacement::InnerVertices:
{
i = 1;
pointNum = 1;
maxCount = points.count() - 1;
break;
}
@@ -1930,7 +1934,6 @@ void QgsTemplatedLineSymbolLayerBase::renderPolylineVertex( const QPolygonF &poi
return;
}

int pointNum = 0;
QPointF prevPoint;
if ( placement == Qgis::MarkerLinePlacement::SegmentCenter && !points.empty() )
prevPoint = points.at( 0 );

0 comments on commit ad4810c

Please sign in to comment.