some more tweaks for bug 30311. Set some (unused) bits in FontFormatting to match Excel.

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@646194 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Josh Micich 2008-04-09 05:56:50 +00:00
parent e77898fa7c
commit cb99b3e409
3 changed files with 474 additions and 530 deletions

File diff suppressed because it is too large Load Diff

View File

@ -88,7 +88,7 @@ public final class HSSFFontFormatting
*
* @return fontheight (in points/20); or -1 if not modified
*/
public short getFontHeight()
public int getFontHeight()
{
return fontFormatting.getFontHeight();
}
@ -308,7 +308,7 @@ public final class HSSFFontFormatting
* @param height
* @see org.apache.poi.hssf.record.cf.FontFormatting#setFontHeight(short)
*/
public void setFontHeight(short height)
public void setFontHeight(int height)
{
fontFormatting.setFontHeight(height);
}

View File

@ -230,7 +230,7 @@ public final class TestCFRuleRecord extends TestCase
fontFormatting.setFontColorIndex((short)10);
assertEquals(10,fontFormatting.getFontColorIndex());
fontFormatting.setFontHeight((short)100);
fontFormatting.setFontHeight(100);
assertEquals(100,fontFormatting.getFontHeight());
fontFormatting.setFontOutlineModified(false);