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

List:       kde-commits
Subject:    branches/KDE/4.0/kdelibs/khtml/xml
From:       Maks Orlovich <maksim () kde ! org>
Date:       2008-01-15 20:18:46
Message-ID: 1200428326.266781.7001.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 761978 by orlovich:

Don't crash cloning elements with both inline and non-CSS style
information where the inline information was created directly,
and not from a style= attribute.

Fixes zeit.de, #153711
BUGNO:153711


 M  +1 -1      dom_elementimpl.cpp  


--- branches/KDE/4.0/kdelibs/khtml/xml/dom_elementimpl.cpp #761977:761978
@@ -462,7 +462,7 @@
             if (!clone->m_hasCombinedStyle)
                 clone->createNonCSSDecl();
             if (m_style.combinedDecls->inlineDecls)
-                *clone->m_style.combinedDecls->inlineDecls = *m_style.combinedDecls->inlineDecls;
+                *(clone->getInlineStyleDecls()) = *m_style.combinedDecls->inlineDecls;
             *clone->m_style.combinedDecls->nonCSSDecls = *m_style.combinedDecls->nonCSSDecls;
         } else {
             *(clone->getInlineStyleDecls()) = *m_style.inlineDecls;
[prev in list] [next in list] [prev in thread] [next in thread] 

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