fix warning

git-svn-id: http://svn.osgeo.org/qgis/trunk@14854 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
jef 2010-12-06 21:56:55 +00:00
parent 9d15ed8238
commit 8af3dd1273

View File

@ -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" )
@ -249,6 +253,7 @@ QgsSymbolLayerV2* QgsMarkerLineSymbolLayerV2::create( const QgsStringMap& props
x->setPlacement( CentralPoint );
else
x->setPlacement( Interval );
}
return x;
}