Skip to content

Commit

Permalink
Fix issue 10205: size of markers in marker line broken
Browse files Browse the repository at this point in the history
  • Loading branch information
manisandro committed May 8, 2014
1 parent add7040 commit 21249c3
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions src/core/symbology-ng/qgslinesymbollayerv2.cpp
Expand Up @@ -617,18 +617,6 @@ QgsSymbolLayerV2* QgsMarkerLineSymbolLayerV2::create( const QgsStringMap& props
rotate = ( props["rotate"] == "1" );

QgsMarkerLineSymbolLayerV2* x = new QgsMarkerLineSymbolLayerV2( rotate, interval );
if ( props.contains( "width" ) )
{
x->setWidth( props["width"].toDouble() );
}
if ( props.contains( "width_unit" ) )
{
x->setWidthUnit( QgsSymbolLayerV2Utils::decodeOutputUnit( props["width_unit"] ) );
}
if ( props.contains( "width_map_unit_scale" ) )
{
x->setWidthMapUnitScale( QgsSymbolLayerV2Utils::decodeMapUnitScale( props["width_map_unit_scale"] ) );
}
if ( props.contains( "offset" ) )
{
x->setOffset( props["offset"].toDouble() );
Expand Down Expand Up @@ -1145,9 +1133,6 @@ QgsStringMap QgsMarkerLineSymbolLayerV2::properties() const
map["rotate"] = ( mRotateMarker ? "1" : "0" );
map["interval"] = QString::number( mInterval );
map["offset"] = QString::number( mOffset );
map["width"] = QString::number( mWidth );
map["width_unit"] = QgsSymbolLayerV2Utils::encodeOutputUnit( mWidthUnit );
map["width_map_unit_scale"] = QgsSymbolLayerV2Utils::encodeMapUnitScale( mWidthMapUnitScale );
map["offset_along_line"] = QString::number( mOffsetAlongLine );
map["offset_along_line_unit"] = QgsSymbolLayerV2Utils::encodeOutputUnit( mOffsetAlongLineUnit );
map["offset_along_line_map_unit_scale"] = QgsSymbolLayerV2Utils::encodeMapUnitScale( mOffsetAlongLineMapUnitScale );
Expand Down Expand Up @@ -1195,9 +1180,6 @@ QgsSymbolLayerV2* QgsMarkerLineSymbolLayerV2::clone() const
x->setSubSymbol( mMarker->clone() );
x->setOffset( mOffset );
x->setPlacement( mPlacement );
x->setWidth( mWidth );
x->setWidthUnit( mWidthUnit );
x->setWidthMapUnitScale( mWidthMapUnitScale );
x->setOffsetUnit( mOffsetUnit );
x->setOffsetMapUnitScale( mOffsetMapUnitScale );
x->setIntervalUnit( mIntervalUnit );
Expand Down

0 comments on commit 21249c3

Please sign in to comment.