Fixed: <rdar://problem/3856913> Panther-only crash in QString code copying front...
[WebKit-https.git] / WebCore / kwq / KWQKHTMLPart.mm
index 9ec7ca550b58d40dc2f643e854375a59f6c07824..492f6dc10800094a91ca24615c3af99cadb39f31 100644 (file)
@@ -3043,7 +3043,7 @@ NSAttributedString *KWQKHTMLPart::attributedString(NodeImpl *_start, int startOf
                             listItemLocations.append (info);
                             
                             listText += '\t';
-                            if (itemParent){
+                            if (itemParent && renderer->isListItem()) {
                                 RenderListItem *listRenderer = static_cast<RenderListItem*>(renderer);
 
                                 maxMarkerWidth = MAX([font pointSize], maxMarkerWidth);