Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix warning
git-svn-id: http://svn.osgeo.org/qgis/trunk@14854 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Dec 6, 2010
1 parent 9d15ed8 commit 8af3dd1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/core/symbology-ng/qgslinesymbollayerv2.cpp
Expand Up @@ -237,8 +237,12 @@ QgsSymbolLayerV2* QgsMarkerLineSymbolLayerV2::create( const QgsStringMap& props

QgsMarkerLineSymbolLayerV2* x = new QgsMarkerLineSymbolLayerV2( rotate, interval );
if ( props.contains( "offset" ) )
{
x->setOffset( props["offset"].toDouble() );
}

if ( props.contains( "placement" ) )
{
if ( props["placement"] == "vertex" )
x->setPlacement( Vertex );
else if ( props["placement"] == "lastvertex" )
Expand All @@ -249,6 +253,7 @@ QgsSymbolLayerV2* QgsMarkerLineSymbolLayerV2::create( const QgsStringMap& props
x->setPlacement( CentralPoint );
else
x->setPlacement( Interval );
}
return x;
}

Expand Down

0 comments on commit 8af3dd1

Please sign in to comment.