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

List:       kde-commits
Subject:    branches/KDE/4.0/kdelibs/khtml/xml
From:       Harri Porten <porten () kde ! org>
Date:       2008-04-20 16:00:14
Message-ID: 1208707214.050183.17715.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 799153 by porten:

Don't crash when calling with missing doc renderer. Could possibly
happen during document teardown but I got it with a form element
inserted into an XHTML document created with createDocument().


 M  +1 -1      dom2_eventsimpl.cpp  


--- branches/KDE/4.0/kdelibs/khtml/xml/dom2_eventsimpl.cpp #799152:799153
@@ -423,7 +423,7 @@
     m_layerY = m_pageY;
 
     DocumentImpl* doc = view() ? view()->document() : 0;
-    if (doc) {
+    if (doc && doc->renderer()) {
         khtml::RenderObject::NodeInfo renderInfo(true, false);
         doc->renderer()->layer()->nodeAtPoint(renderInfo, m_pageX, m_pageY);
 
[prev in list] [next in list] [prev in thread] [next in thread] 

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