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=39324>.
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=39324

           Summary: RichTextRun.setBold and RichTextRun.setItalic corrupt
                    the underlying StyleTextPropAtom.
           Product: POI
           Version: unspecified
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HSLF
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


Hi Nick

It seems something is wrong with RichTextRun class.

setBold or setItalic operations corrupt the underlying StyleTextPropAtom.
To see the problem run the attached TestShapes.testTextBoxWrite.

The problems is only with flag values (bold, italic, underline). 
If I set only font size everything is OK. I save the file, read it again and see
the correct font size.
But if I call setBold or setItalic things go wrong and after save font
size = 0.

I did work in the past. I guess you missed something after when
refactored this class lately.

Regards, Yegor Kozlov

-- 
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]
Mailing List:    http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta POI Project: http://jakarta.apache.org/poi/

Reply via email to