Skip to content
Permalink
Browse files

Fix invalid data defined parameters for SVG fill after loading project (

fix #10156)
  • Loading branch information
nyalldawson committed May 4, 2014
1 parent 26c6435 commit 43e1a635f70276a2d1c62f9c05c12e2833c98225
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/core/symbology-ng/qgsfillsymbollayerv2.cpp
@@ -1586,11 +1586,11 @@ QgsSymbolLayerV2* QgsSVGFillSymbolLayer::create( const QgsStringMap& properties
if ( properties.contains( "angle_expression" ) )
symbolLayer->setDataDefinedProperty( "angle", properties["angle_expression"] );
if ( properties.contains( "svgFillColor_expression" ) )
symbolLayer->setDataDefinedProperty( "svgFillColor", "svgFillColor_expression" );
symbolLayer->setDataDefinedProperty( "svgFillColor", properties["svgFillColor_expression"] );
if ( properties.contains( "svgOutlineColor_expression" ) )
symbolLayer->setDataDefinedProperty( "svgOutlineColor", "svgOutlineColor_expression" );
if ( properties.contains( "svgOutlineWidth" ) )
symbolLayer->setDataDefinedProperty( "svgOutlineWidth", "svgOutlineWidth_expression" );
symbolLayer->setDataDefinedProperty( "svgOutlineColor", properties["svgOutlineColor_expression"] );
if ( properties.contains( "svgOutlineWidth_expression" ) )
symbolLayer->setDataDefinedProperty( "svgOutlineWidth", properties["svgOutlineWidth_expression"] );

return symbolLayer;
}

0 comments on commit 43e1a63

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