Skip to content
Permalink
Browse files
Retain lossless round trip when using deprecated API
  • Loading branch information
nyalldawson committed Nov 18, 2021
1 parent 91c5364 commit 2bc3f510ff0934ffd508a80c3f01bb5da6312c1d
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/core/symbology/qgslinesymbollayer.cpp
@@ -1237,6 +1237,10 @@ Qgis::MarkerLinePlacement QgsTemplatedLineSymbolLayerBase::placement() const
return Qgis::MarkerLinePlacement::Interval;
else if ( mPlacements & Qgis::MarkerLinePlacement::Vertex )
return Qgis::MarkerLinePlacement::Vertex;
else if ( ( mPlacements & Qgis::MarkerLinePlacement::FirstVertex )
&& ( mPlacements & Qgis::MarkerLinePlacement::InnerVertices )
&& ( mPlacements & Qgis::MarkerLinePlacement::LastVertex ) )
return Qgis::MarkerLinePlacement::Vertex; // retain round trip for deprecated old API
else if ( mPlacements & Qgis::MarkerLinePlacement::LastVertex )
return Qgis::MarkerLinePlacement::LastVertex;
else if ( mPlacements & Qgis::MarkerLinePlacement::FirstVertex )

0 comments on commit 2bc3f51

Please sign in to comment.