aboutsummaryrefslogtreecommitdiffstats
path: root/src/scratchpad
diff options
context:
space:
mode:
Diffstat (limited to 'src/scratchpad')
-rw-r--r--src/scratchpad/src/org/apache/poi/hwpf/usermodel/CharacterRun.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/scratchpad/src/org/apache/poi/hwpf/usermodel/CharacterRun.java b/src/scratchpad/src/org/apache/poi/hwpf/usermodel/CharacterRun.java
index 530196eb26..4e51c747de 100644
--- a/src/scratchpad/src/org/apache/poi/hwpf/usermodel/CharacterRun.java
+++ b/src/scratchpad/src/org/apache/poi/hwpf/usermodel/CharacterRun.java
@@ -352,9 +352,9 @@ public final class CharacterRun extends Range implements Duplicatable, org.apach
return _props.getHps();
}
- public float getFontSizeAsFloat()
+ public Double getFontSizeAsDouble()
{
- return (float)getFontSize();
+ return (double)getFontSize();
}
public void setFontSize(int halfPoints)
@@ -365,7 +365,7 @@ public final class CharacterRun extends Range implements Duplicatable, org.apach
}
- public void setFontSize(float halfPoints)
+ public void setFontSize(double halfPoints)
{
setFontSize(BigDecimal.valueOf(halfPoints).setScale(0, RoundingMode.HALF_UP).intValue());
}