ASF Bugzilla – Attachment 30308 Details for
Bug 55001
[PATCH] TextShape.getTextRun() fails to include unicode text
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Simple patch to allow extraction of unicode text from TextShapes
TextShape.patch (text/plain), 1.32 KB, created by
virtuald
on 2013-05-22 04:04:09 UTC
(
hide
)
Description:
Simple patch to allow extraction of unicode text from TextShapes
Filename:
MIME Type:
Creator:
virtuald
Created:
2013-05-22 04:04:09 UTC
Size:
1.32 KB
patch
obsolete
>Index: src/scratchpad/src/org/apache/poi/hslf/model/TextShape.java >=================================================================== >--- src/scratchpad/src/org/apache/poi/hslf/model/TextShape.java (revision 1484928) >+++ src/scratchpad/src/org/apache/poi/hslf/model/TextShape.java (working copy) >@@ -488,8 +492,9 @@ > public TextRun getTextRun(){ > if (null == this._txtrun) initTextRun(); > if (null == this._txtrun && null != this._txtbox) { > TextHeaderAtom tha = null; > TextBytesAtom tba = null; >+ TextCharsAtom tca = null; > StyleTextPropAtom sta = null; > Record[] childRecords = this._txtbox.getChildRecords(); > for (Record r : childRecords) { >@@ -497,13 +502,18 @@ > tha = (TextHeaderAtom) r; > } else if (r instanceof TextBytesAtom) { > tba = (TextBytesAtom) r; >+ } else if (r instanceof TextCharsAtom) { >+ tca = (TextCharsAtom) r; > } else if (r instanceof StyleTextPropAtom) { > sta = (StyleTextPropAtom) r; > } > } > if (null != tba) { > this._txtrun = new TextRun(tha, tba, sta); >- } >+ } else if (null != tca) { >+ this._txtrun = new TextRun(tha, tca, sta); >+ } > } > return _txtrun; > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 55001
: 30308