diff -r db5c883ad1c5 -r 1902ade171ab svgtopt/SVG/SVGImpl/src/SVGElementImpl.cpp --- a/svgtopt/SVG/SVGImpl/src/SVGElementImpl.cpp Tue Aug 31 16:06:58 2010 +0300 +++ b/svgtopt/SVG/SVGImpl/src/SVGElementImpl.cpp Wed Sep 01 12:20:46 2010 +0100 @@ -101,6 +101,8 @@ CSvgElementImpl* lParentElement = (CSvgElementImpl*)aElement->ParentNode (); while(lParentElement && (lParentElement->iSvgStyleProperties != NULL)) { + if(!lParentElement) + return EFalse; if (aElement->iSvgStyleProperties->operator[](aAttrIndex) == lParentElement->iSvgStyleProperties->operator[](aAttrIndex)) { @@ -671,8 +673,7 @@ { ((CSvgFontFaceElementImpl *)this)->SetFontFamilyL(aValue); } - break; - + case KCSS_ATTR_STROKE_LINECAP: case KCSS_ATTR_STROKE_LINEJOIN: case KCSS_ATTR_FILLRULE: @@ -2312,7 +2313,7 @@ //tParentValue = (CIntCssValueImpl *)(lParentElement->iSvgStyleProperties->operator[](aNameId)); //(*iSvgStyleProperties)[aNameId]= tParentValue; if(tParentValue) - tValue->SetValueL(tParentValue->Value()); + tValue->SetValueL(tParentValue->Value()); } else {