Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix map unit scale for simple line width not restored (fix #11181)
  • Loading branch information
nyalldawson committed Nov 28, 2014
1 parent 05276ea commit 9d30db4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/symbology-ng/qgslinesymbollayerv2.cpp
Expand Up @@ -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" ) )
Expand Down

0 comments on commit 9d30db4

Please sign in to comment.