You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-dev@xmlgraphics.apache.org by bu...@apache.org on 2005/10/02 05:30:15 UTC

DO NOT REPLY [Bug 36889] New: - Changing text content of a flowPara result in NPE

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: batik-dev@xml.apache.org
        ReportedBy: cam@apache.org


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: batik-dev-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-dev-help@xmlgraphics.apache.org