ASF Bugzilla – Attachment 27945 Details for
Bug 52190
[PATCH] XWPFRun.setFontFamily fails if called first when setting run properties
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
SVN patch file in plain text.
patch.txt (text/plain), 625 bytes, created by
Gregg Morris
on 2011-11-16 01:23:31 UTC
(
hide
)
Description:
SVN patch file in plain text.
Filename:
MIME Type:
Creator:
Gregg Morris
Created:
2011-11-16 01:23:31 UTC
Size:
625 bytes
patch
obsolete
>Index: src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFRun.java >=================================================================== >--- src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFRun.java (revision 1202477) >+++ src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFRun.java (working copy) >@@ -461,7 +461,7 @@ > * @param fontFamily > */ > public void setFontFamily(String fontFamily) { >- CTRPr pr = run.getRPr(); >+ CTRPr pr = run.isSetRPr() ? run.getRPr() : run.addNewRPr(); > CTFonts fonts = pr.isSetRFonts() ? pr.getRFonts() : pr.addNewRFonts(); > fonts.setAscii(fontFamily); > }
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 Raw
Actions:
View
Attachments on
bug 52190
: 27945