Skip to content

Commit 9d30db4

Browse files
committedNov 28, 2014
Fix map unit scale for simple line width not restored (fix #11181)
1 parent 05276ea commit 9d30db4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎src/core/symbology-ng/qgslinesymbollayerv2.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,8 @@ QgsSymbolLayerV2* QgsSimpleLineSymbolLayerV2::create( const QgsStringMap& props
139139
//pre 2.5 projects used "width_unit"
140140
l->setWidthUnit( QgsSymbolLayerV2Utils::decodeOutputUnit( props["width_unit"] ) );
141141
}
142+
if ( props.contains( "width_map_unit_scale" ) )
143+
l->setWidthMapUnitScale( QgsSymbolLayerV2Utils::decodeMapUnitScale( props["width_map_unit_scale"] ) );
142144
if ( props.contains( "offset" ) )
143145
l->setOffset( props["offset"].toDouble() );
144146
if ( props.contains( "offset_unit" ) )

0 commit comments

Comments
 (0)
Please sign in to comment.