https://issues.apache.org/bugzilla/show_bug.cgi?id=48718
Summary: XSSFWorkbook.createFont fails to add font to
styletable if un-modified Font was created
Product: POI
Version: 3.6
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P2
Component: XSSF
AssignedTo: dev@poi.apache.org
ReportedBy: payam.hekmat@gmail.com
How to reproduce:
XSSFWorkbook wb = new XSSFWorkbook();
wb.createFont();
//this next font gets ignored because the font above was never modified
XSSFFont f = wb.createFont();
f.setBold(true);
StylesTable.putFont(font) checks to see if the font is already there as part of
createFont(), before any modifications on the font can occur.
A workaround is to simply not call wb.createFont() if you don't modify the Font
afterward, but this may not be viable in all cases.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
|