Bug 55386

Summary: when getBoldweight is normal,shouldn't be set the html to the font-weight: bold
Product: POI Reporter: fujian <fujian1115>
Component: SS CommonAssignee: POI Developers List <dev>
Status: RESOLVED FIXED    
Severity: critical    
Priority: P2    
Version: 3.10-dev   
Target Milestone: ---   
Hardware: PC   
OS: All   

Description fujian 2013-08-08 02:07:45 UTC
org.apache.poi.ss.examples.html.ToHtml.fontStyle(CellStyle)


        if (font.getBoldweight() >= HSSFFont.BOLDWEIGHT_NORMAL)
            out.format("  font-weight: bold;%n");

when the bold-weight is normal, the font-weight should be set to normal to, not be set to bold.

shoudle change the >= to >.
Comment 1 Dominik Stadler 2015-03-22 21:49:48 UTC
I have fixed this via r1668486, note that the error was the constant that was used for the comparison, not the generated html.