Skip to content

Commit

Permalink
Update src/core/symbology/qgsmapinfosymbolconverter.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Paul Blottiere <blottiere.paul@gmail.com>
  • Loading branch information
nyalldawson and pblottiere committed May 6, 2021
1 parent 74aa98a commit abd5364
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/symbology/qgsmapinfosymbolconverter.cpp
Expand Up @@ -461,7 +461,7 @@ QgsLineSymbol *QgsMapInfoSymbolConverter::convertLineSymbol( int identifier, Qgs
symbol->symbolLayer( 0 )->setLocked( true );

std::unique_ptr<QgsSimpleLineSymbolLayer > secondRail( qgis::down_cast< QgsSimpleLineSymbolLayer * >( symbol->symbolLayer( 0 ) )->clone() );
double offset = 2 * size;
const double offset = 2 * size;
qgis::down_cast< QgsSimpleLineSymbolLayer * >( symbol->symbolLayer( 0 ) )->setOffset( offset );
qgis::down_cast< QgsSimpleLineSymbolLayer * >( symbol->symbolLayer( 0 ) )->setOffsetUnit( sizeUnit );
secondRail->setOffset( -offset );
Expand Down

0 comments on commit abd5364

Please sign in to comment.