https://bz.apache.org/bugzilla/show_bug.cgi?id=64999
Bug ID: 64999
Summary: XDDFRunProperties setFonts font override
Product: POI
Version: 4.1.2-FINAL
Hardware: PC
Status: NEW
Severity: normal
Priority: P2
Component: XDDF
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
public void setFonts(XDDFFont[] fonts) {
for (XDDFFont font : fonts) {
CTTextFont xml = font.getXmlObject();
switch (font.getGroup()) {
case COMPLEX_SCRIPT:
if (xml == null) {
if (props.isSetCs()) {
props.unsetCs();
}
} else {
props.setCs(xml);
}
case EAST_ASIAN:
if (xml == null) {
if (props.isSetEa()) {
props.unsetEa();
}
} else {
props.setEa(xml);
}
case LATIN:
if (xml == null) {
if (props.isSetLatin()) {
props.unsetLatin();
}
} else {
props.setLatin(xml);
}
case SYMBOL:
if (xml == null) {
if (props.isSetSym()) {
props.unsetSym();
}
} else {
props.setSym(xml);
}
}
}
}
Add break to case.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]