View | Details | Raw Unified | Return to bug 53028
Collapse All | Expand All

(-)src/java/org/apache/poi/hssf/usermodel/HSSFRow.java (+1 lines)
Lines 490-495 Link Here
490
    {
490
    {
491
        if(height == -1){
491
        if(height == -1){
492
            row.setHeight((short)(0xFF | 0x8000));
492
            row.setHeight((short)(0xFF | 0x8000));
493
            row.setBadFontHeight(false);
493
        } else {
494
        } else {
494
            row.setBadFontHeight(true);
495
            row.setBadFontHeight(true);
495
            row.setHeight((short) (height * 20));
496
            row.setHeight((short) (height * 20));
(-)src/testcases/org/apache/poi/hssf/usermodel/TestHSSFRow.java (+8 lines)
Lines 132-136 Link Here
132
        row.setHeight((short) -1);
132
        row.setHeight((short) -1);
133
        assertEquals(row.getHeight(), sheet.getDefaultRowHeight());
133
        assertEquals(row.getHeight(), sheet.getDefaultRowHeight());
134
        assertEquals(row.getRowRecord().getBadFontHeight(), false);
134
        assertEquals(row.getRowRecord().getBadFontHeight(), false);
135
136
        row.setHeight((short) 123);
137
        assertEquals(row.getHeight(), 123);
138
        assertEquals(row.getRowRecord().getBadFontHeight(), true);
139
140
        row.setHeightInPoints(-1);
141
        assertEquals(row.getHeight(), sheet.getDefaultRowHeight());
142
        assertEquals(row.getRowRecord().getBadFontHeight(), false);
135
    }
143
    }
136
}
144
}

Return to bug 53028