From kde-commits Tue Jan 15 20:18:46 2008 From: Maks Orlovich Date: Tue, 15 Jan 2008 20:18:46 +0000 To: kde-commits Subject: branches/KDE/4.0/kdelibs/khtml/xml Message-Id: <1200428326.266781.7001.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=120042833925310 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;