Skip to content

Commit 1bd2a69

Browse files
committed
Fix svg marker colors not correctly restored from project
1 parent 3aa6c4f commit 1bd2a69

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/core/symbology-ng/qgsmarkersymbollayerv2.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1099,24 +1099,24 @@ QgsSymbolLayerV2* QgsSvgMarkerSymbolLayerV2::create( const QgsStringMap& props )
10991099
if ( props.contains( "fill" ) )
11001100
{
11011101
//pre 2.5 projects used "fill"
1102-
m->setFillColor( QColor( props["fill"] ) );
1102+
m->setFillColor( QgsSymbolLayerV2Utils::decodeColor( props["fill"] ) );
11031103
}
11041104
else if ( props.contains( "color" ) )
11051105
{
1106-
m->setFillColor( QColor( props["color"] ) );
1106+
m->setFillColor( QgsSymbolLayerV2Utils::decodeColor( props["color"] ) );
11071107
}
11081108
if ( props.contains( "outline" ) )
11091109
{
11101110
//pre 2.5 projects used "outline"
1111-
m->setOutlineColor( QColor( props["outline"] ) );
1111+
m->setOutlineColor( QgsSymbolLayerV2Utils::decodeColor( props["outline"] ) );
11121112
}
11131113
else if ( props.contains( "outline_color" ) )
11141114
{
1115-
m->setOutlineColor( QColor( props["outline_color"] ) );
1115+
m->setOutlineColor( QgsSymbolLayerV2Utils::decodeColor( props["outline_color"] ) );
11161116
}
11171117
else if ( props.contains( "line_color" ) )
11181118
{
1119-
m->setOutlineColor( QColor( props["line_color"] ) );
1119+
m->setOutlineColor( QgsSymbolLayerV2Utils::decodeColor( props["line_color"] ) );
11201120
}
11211121

11221122
if ( props.contains( "outline-width" ) )

0 commit comments

Comments
 (0)