You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2010/02/10 04:42:56 UTC

DO NOT REPLY [Bug 48718] New: XSSFWorkbook.createFont fails to add font to styletable if un-modified Font was created

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


DO NOT REPLY [Bug 48718] XSSFWorkbook.createFont fails to add font to styletable if un-modified Font was created

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48718

Nick Burch <ni...@alfresco.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #1 from Nick Burch <ni...@alfresco.com> 2010-05-28 09:45:10 EDT ---
Fixed in r949177 - XSSF now behaves as HSSF did on creating multiple un-changed
fonts

-- 
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