Skip to content
Permalink
Browse files

fix warning

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@14854 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef
jef committed Dec 6, 2010
1 parent 46a2ca7 commit 6631321cf7fec840c0c1193e796510720a2071b5
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/core/symbology-ng/qgslinesymbollayerv2.cpp
@@ -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;
}

0 comments on commit 6631321

Please sign in to comment.
You can’t perform that action at this time.