svgtopt/SVG/SVGImpl/src/SVGElementImpl.cpp
branchRCL_3
changeset 10 baacd33d915b
parent 0 d46562c3d99d
child 11 81aabfdef1e5
--- 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
             {