Skip to content
Permalink
Browse files

fix warning

git-svn-id: http://svn.osgeo.org/qgis/trunk@14854 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef
jef committed Dec 6, 2010
1 parent 9d15ed8 commit 8af3dd1273f026e85c81338a045ae8c6a431a7a8
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 8af3dd1

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