--- a/svgtopt/SVG/SVGImpl/src/SVGElementImpl.cpp Fri Feb 19 23:44:22 2010 +0200
+++ b/svgtopt/SVG/SVGImpl/src/SVGElementImpl.cpp Fri Mar 12 15:47:00 2010 +0200
@@ -2177,12 +2177,13 @@
{
MGfxPaint* lPaintValue = (MGfxPaint *)((( CPaintCssValueImpl* )lCssValue)->Value());
+ /*
if(lPaintValue && lPaintValue->GetColor()== KSvgCurrentColor)
{
lPaintValue = CurrentColor();
aValue = lPaintValue->GetColor();
}
- else if(lPaintValue)
+ else*/ if(lPaintValue)
{
aValue = lPaintValue->GetColor();
}
@@ -2309,8 +2310,9 @@
}
if( lParentElement && aValue == KInherit )
{
- tParentValue = (CIntCssValueImpl *)(lParentElement->iSvgStyleProperties->operator[](aNameId));
- (*iSvgStyleProperties)[aNameId]= tParentValue;
+ //tParentValue = (CIntCssValueImpl *)(lParentElement->iSvgStyleProperties->operator[](aNameId));
+ //(*iSvgStyleProperties)[aNameId]= tParentValue;
+ tValue->SetValueL(tParentValue->Value());
}
else
{