File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff 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" ) )
You can’t perform that action at this time.
0 commit comments