DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=36889>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=36889

           Summary: Changing text content of a flowPara result in NPE
           Product: Batik
           Version: 1.6
          Platform: Other
               URL: http://mcc.id.au/temp/2005/flowtext-change-bug.svg
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: GVT Text
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


Changing the text content of a flowPara causes an NPE when relaying out the 
text.

Steps to reproduce:
1. Open http://mcc.id.au/temp/2005/flowtext-change-bug.svg .
2. Click the black rect to change the flowPara's text content.

When the text is relaid out, the new ACI doesn't have the LINE_HEIGHT attribute
set, which causes the NPE.  The attribute map returned by the getAttributeMap
call in SVGFlowRootBridge.fillAttributedStringBuffer does contain the attribute.
 But by the end of the function, the AttributedStringBuffer does not contain the
attribute.  I checked this with:

  System.err.println("asb has LINE_HEIGHT " +
asb.toAttributedString().getIterator().getAttribute(org.apache.batik
.gvt.text.GVTAttributedCharacterIterator.TextAttribute.LINE_HEIGHT));

When the text is laid out the first time, on document load, this line does
report the expected line height.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to