poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 48718] New: XSSFWorkbook.createFont fails to add font to styletable if un-modified Font was created
Date Wed, 10 Feb 2010 03:42:56 GMT
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


Mime
View raw message