Summary: | crash if CSS combination of font-variant: small-caps and :first-letter | ||
---|---|---|---|
Product: | [Applications] konqueror | Reporter: | Wolfgang Thiess <mail> |
Component: | khtml | Assignee: | Konqueror Developers <konq-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | crash | ||
Priority: | NOR | ||
Version: | 4.0 | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
Wolfgang Thiess
2002-12-17 19:32:13 UTC
Subject: kdelibs/khtml/rendering CVS commit by mueller: keep the string referenced before copying CCMAIL: 52031-done@bugs.kde.org M +1 -3 render_flow.cpp 1.315 --- kdelibs/khtml/rendering/render_flow.cpp #1.314:1.315 @@ -1333,7 +1333,4 @@ void RenderFlow::addChild(RenderObject * length++; length++; - //kdDebug( 6040 ) << "letter= '" << DOMString(oldText->substring(0,length)).string() << "'" << endl; - newTextChild->setText(oldText->substring(length,oldText->l-length)); - RenderText* letter = new RenderText(0 /* anonymous object */, oldText->substring(0,length)); RenderStyle* newStyle = new RenderStyle(); @@ -1342,4 +1339,5 @@ void RenderFlow::addChild(RenderObject * letter->setIsAnonymousBox(true); firstLetter->addChild(letter); + newTextChild->setText(oldText->substring(length,oldText->l-length)); } firstLetter->close(); |