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 52a2fed commit 4473efe351c4c3b0d96bf3dc86582718900681ca
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 4473efe

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