svgtopt/SVG/SVGImpl/src/SVGAnimationBase.cpp
changeset 19 df65ec4f2d28
parent 0 d46562c3d99d
child 39 1902ade171ab
--- a/svgtopt/SVG/SVGImpl/src/SVGAnimationBase.cpp	Fri Apr 16 15:55:53 2010 +0300
+++ b/svgtopt/SVG/SVGImpl/src/SVGAnimationBase.cpp	Mon May 03 13:22:17 2010 +0300
@@ -679,11 +679,13 @@
 				        iAnimTime->SaveBeginTime();
             }
 
-            if ( ( ((CSvgDocumentImpl*)iOwnerDocument)->Engine() && iAnimTime && ((CSvgDocumentImpl*)iOwnerDocument)->Engine()->CurrentTIme() >= iAnimTime->BeginTime() )
-             || ( iAnimTime && ((CSvgDocumentImpl*)iOwnerDocument)->iTimeForJSR226 >= iAnimTime->BeginTime() ) )
+            if ( ( ((CSvgDocumentImpl*)iOwnerDocument)->Engine() && ((CSvgDocumentImpl*)iOwnerDocument)->Engine()->CurrentTIme() >= iAnimTime->BeginTime() )
+             || ( ((CSvgDocumentImpl*)iOwnerDocument)->iTimeForJSR226 >= iAnimTime->BeginTime() ) )
 				{
-        	iTargetElement->SetIsAnimating( ETrue );
-        	SetIsAnimating( ETrue );
+                if (iTargetElement)
+                    iTargetElement->SetIsAnimating( ETrue );
+                
+                SetIsAnimating( ETrue );
 				}
 
         }