Bug 55386 - when getBoldweight is normal,shouldn't be set the html to the font-weight: bold
Summary: when getBoldweight is normal,shouldn't be set the html to the font-weight: bold
Status: RESOLVED FIXED
Alias: None
Product: POI
Classification: Unclassified
Component: SS Common (show other bugs)
Version: 3.10-dev
Hardware: PC All
: P2 critical (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-08 02:07 UTC by fujian
Modified: 2015-03-22 21:49 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.