@@ -1041,7 +1041,7 @@ QgsSvgMarkerSymbolLayerV2::QgsSvgMarkerSymbolLayerV2( const QString& name, doubl
10411041 mScaleMethod = scaleMethod;
10421042 mOutlineWidth = 1.0 ;
10431043 mOutlineWidthUnit = QgsSymbolV2::MM ;
1044- mFillColor = QColor ( Qt::black );
1044+ mColor = QColor ( Qt::black );
10451045 mOutlineColor = QColor ( Qt::black );
10461046}
10471047
@@ -1292,10 +1292,10 @@ void QgsSvgMarkerSymbolLayerV2::renderPoint( const QPointF& point, QgsSymbolV2Re
12921292 }
12931293 outlineWidth = QgsSymbolLayerV2Utils::convertToPainterUnits ( context.renderContext (), outlineWidth, mOutlineWidthUnit , mOutlineWidthMapUnitScale );
12941294
1295- QColor fillColor = mFillColor ;
1295+ QColor fillColor = mColor ;
12961296 if ( hasDataDefinedProperty ( QgsSymbolLayerV2::EXPR_FILL ) )
12971297 {
1298- context.setOriginalValueVariable ( QgsSymbolLayerV2Utils::encodeColor ( mFillColor ) );
1298+ context.setOriginalValueVariable ( QgsSymbolLayerV2Utils::encodeColor ( mColor ) );
12991299 QString colorString = evaluateDataDefinedProperty ( QgsSymbolLayerV2::EXPR_FILL , context, QVariant (), &ok ).toString ();
13001300 if ( ok )
13011301 fillColor = QgsSymbolLayerV2Utils::decodeColor ( colorString );
@@ -1386,8 +1386,8 @@ QgsStringMap QgsSvgMarkerSymbolLayerV2::properties() const
13861386 map[" offset_unit" ] = QgsSymbolLayerV2Utils::encodeOutputUnit ( mOffsetUnit );
13871387 map[" offset_map_unit_scale" ] = QgsSymbolLayerV2Utils::encodeMapUnitScale ( mOffsetMapUnitScale );
13881388 map[" scale_method" ] = QgsSymbolLayerV2Utils::encodeScaleMethod ( mScaleMethod );
1389- map[" color" ] = mFillColor . name ( );
1390- map[" outline_color" ] = mOutlineColor . name ( );
1389+ map[" color" ] = QgsSymbolLayerV2Utils::encodeColor ( mColor );
1390+ map[" outline_color" ] = QgsSymbolLayerV2Utils::encodeColor ( mOutlineColor );
13911391 map[" outline_width" ] = QString::number ( mOutlineWidth );
13921392 map[" outline_width_unit" ] = QgsSymbolLayerV2Utils::encodeOutputUnit ( mOutlineWidthUnit );
13931393 map[" outline_width_map_unit_scale" ] = QgsSymbolLayerV2Utils::encodeMapUnitScale ( mOutlineWidthMapUnitScale );
@@ -1401,7 +1401,7 @@ QgsStringMap QgsSvgMarkerSymbolLayerV2::properties() const
14011401QgsSymbolLayerV2* QgsSvgMarkerSymbolLayerV2::clone () const
14021402{
14031403 QgsSvgMarkerSymbolLayerV2* m = new QgsSvgMarkerSymbolLayerV2 ( mPath , mSize , mAngle );
1404- m->setFillColor ( mFillColor );
1404+ m->setColor ( mColor );
14051405 m->setOutlineColor ( mOutlineColor );
14061406 m->setOutlineWidth ( mOutlineWidth );
14071407 m->setOutlineWidthUnit ( mOutlineWidthUnit );
@@ -1455,7 +1455,7 @@ void QgsSvgMarkerSymbolLayerV2::writeSldMarker( QDomDocument &doc, QDomElement &
14551455 QDomElement graphicElem = doc.createElement ( " se:Graphic" );
14561456 element.appendChild ( graphicElem );
14571457
1458- QgsSymbolLayerV2Utils::externalGraphicToSld ( doc, graphicElem, mPath , " image/svg+xml" , mFillColor , mSize );
1458+ QgsSymbolLayerV2Utils::externalGraphicToSld ( doc, graphicElem, mPath , " image/svg+xml" , mColor , mSize );
14591459
14601460 // <Rotation>
14611461 QString angleFunc;
@@ -1598,10 +1598,10 @@ bool QgsSvgMarkerSymbolLayerV2::writeDxf( QgsDxfExport& e, double mmMapUnitScale
15981598 }
15991599 outlineWidth = QgsSymbolLayerV2Utils::convertToPainterUnits ( context->renderContext (), outlineWidth, mOutlineWidthUnit , mOutlineWidthMapUnitScale );
16001600
1601- QColor fillColor = mFillColor ;
1601+ QColor fillColor = mColor ;
16021602 if ( hasDataDefinedProperty ( QgsSymbolLayerV2::EXPR_FILL ) )
16031603 {
1604- context->setOriginalValueVariable ( QgsSymbolLayerV2Utils::encodeColor ( mFillColor ) );
1604+ context->setOriginalValueVariable ( QgsSymbolLayerV2Utils::encodeColor ( mColor ) );
16051605 QString colorString = evaluateDataDefinedProperty ( QgsSymbolLayerV2::EXPR_FILL , *context, QVariant (), &ok ).toString ();
16061606 if ( ok )
16071607 fillColor = QgsSymbolLayerV2Utils::decodeColor ( colorString );
0 commit comments