Skip to content
Permalink
Browse files

Fix map unit scale for simple line width not restored (fix #11181)

  • Loading branch information
nyalldawson committed Nov 28, 2014
1 parent 05276ea commit 9d30db435a6e946bb9384dbf67063b5c2650b40c
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/core/symbology-ng/qgslinesymbollayerv2.cpp
@@ -139,6 +139,8 @@ QgsSymbolLayerV2* QgsSimpleLineSymbolLayerV2::create( const QgsStringMap& props
//pre 2.5 projects used "width_unit"
l->setWidthUnit( QgsSymbolLayerV2Utils::decodeOutputUnit( props["width_unit"] ) );
}
if ( props.contains( "width_map_unit_scale" ) )
l->setWidthMapUnitScale( QgsSymbolLayerV2Utils::decodeMapUnitScale( props["width_map_unit_scale"] ) );
if ( props.contains( "offset" ) )
l->setOffset( props["offset"].toDouble() );
if ( props.contains( "offset_unit" ) )

0 comments on commit 9d30db4

Please sign in to comment.
You can’t perform that action at this time.