[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/work/khtml-svg/css
From:       Rob Buis <buis () kde ! org>
Date:       2006-04-23 20:21:31
Message-ID: 1145823691.057369.28002.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 533147 by buis:

Some svg elements are not derived from SVGStyledElementImpl, like <style>,
causing a crash here, for instance for cubic01.svg.


 M  +2 -1      cssstyleselector.cpp  


--- branches/work/khtml-svg/css/cssstyleselector.cpp #533146:533147
@@ -755,7 +755,8 @@
     if(e->isSVGElement())
     {
         addDecls = decl;
-        decl = static_cast<KSVG::SVGStyledElementImpl *>(e)->pa();
+        if(dynamic_cast<KSVG::SVGStyledElementImpl *>(e))
+            decl = static_cast<KSVG::SVGStyledElementImpl *>(e)->pa();
     }
 #else
     Q_UNUSED( e );
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic