Skip to content

Commit

Permalink
Fix default placement should not reset to interval mode
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Nov 12, 2021
1 parent 4690ed0 commit fbfa992
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/symbology/qgslinesymbollayer.cpp
Expand Up @@ -1570,9 +1570,9 @@ void QgsTemplatedLineSymbolLayerBase::setCommonProperties( QgsTemplatedLineSymbo
else
destLayer->setPlacements( Qgis::MarkerLinePlacement::Interval );
}
else
else if ( properties.contains( QStringLiteral( "placements" ) ) )
{
Qgis::MarkerLinePlacements placements = qgsFlagKeysToValue( properties.value( QStringLiteral( "placements" ) ).toString(), Qgis::MarkerLinePlacement::Interval );
Qgis::MarkerLinePlacements placements = qgsFlagKeysToValue( properties.value( QStringLiteral( "placements" ) ).toString(), Qgis::MarkerLinePlacements() );
destLayer->setPlacements( placements );
}

Expand Down

0 comments on commit fbfa992

Please sign in to comment.