Skip to content

Commit 8af3dd1

Browse files
author
jef
committed
fix warning
git-svn-id: http://svn.osgeo.org/qgis/trunk@14854 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 9d15ed8 commit 8af3dd1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/core/symbology-ng/qgslinesymbollayerv2.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,8 +237,12 @@ QgsSymbolLayerV2* QgsMarkerLineSymbolLayerV2::create( const QgsStringMap& props
237237

238238
QgsMarkerLineSymbolLayerV2* x = new QgsMarkerLineSymbolLayerV2( rotate, interval );
239239
if ( props.contains( "offset" ) )
240+
{
240241
x->setOffset( props["offset"].toDouble() );
242+
}
243+
241244
if ( props.contains( "placement" ) )
245+
{
242246
if ( props["placement"] == "vertex" )
243247
x->setPlacement( Vertex );
244248
else if ( props["placement"] == "lastvertex" )
@@ -249,6 +253,7 @@ QgsSymbolLayerV2* QgsMarkerLineSymbolLayerV2::create( const QgsStringMap& props
249253
x->setPlacement( CentralPoint );
250254
else
251255
x->setPlacement( Interval );
256+
}
252257
return x;
253258
}
254259

0 commit comments

Comments
 (0)