mirror of https://github.com/apache/poi.git
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:
parent
e77898fa7c
commit
cb99b3e409
File diff suppressed because it is too large
Load Diff
|
@ -88,7 +88,7 @@ public final class HSSFFontFormatting
|
||||||
*
|
*
|
||||||
* @return fontheight (in points/20); or -1 if not modified
|
* @return fontheight (in points/20); or -1 if not modified
|
||||||
*/
|
*/
|
||||||
public short getFontHeight()
|
public int getFontHeight()
|
||||||
{
|
{
|
||||||
return fontFormatting.getFontHeight();
|
return fontFormatting.getFontHeight();
|
||||||
}
|
}
|
||||||
|
@ -308,7 +308,7 @@ public final class HSSFFontFormatting
|
||||||
* @param height
|
* @param height
|
||||||
* @see org.apache.poi.hssf.record.cf.FontFormatting#setFontHeight(short)
|
* @see org.apache.poi.hssf.record.cf.FontFormatting#setFontHeight(short)
|
||||||
*/
|
*/
|
||||||
public void setFontHeight(short height)
|
public void setFontHeight(int height)
|
||||||
{
|
{
|
||||||
fontFormatting.setFontHeight(height);
|
fontFormatting.setFontHeight(height);
|
||||||
}
|
}
|
||||||
|
|
|
@ -230,7 +230,7 @@ public final class TestCFRuleRecord extends TestCase
|
||||||
fontFormatting.setFontColorIndex((short)10);
|
fontFormatting.setFontColorIndex((short)10);
|
||||||
assertEquals(10,fontFormatting.getFontColorIndex());
|
assertEquals(10,fontFormatting.getFontColorIndex());
|
||||||
|
|
||||||
fontFormatting.setFontHeight((short)100);
|
fontFormatting.setFontHeight(100);
|
||||||
assertEquals(100,fontFormatting.getFontHeight());
|
assertEquals(100,fontFormatting.getFontHeight());
|
||||||
|
|
||||||
fontFormatting.setFontOutlineModified(false);
|
fontFormatting.setFontOutlineModified(false);
|
||||||
|
|
Loading…
Reference in New Issue