diff --git a/src/java/org/apache/poi/hssf/record/FormulaRecord.java b/src/java/org/apache/poi/hssf/record/FormulaRecord.java index eba34a307..c405f901b 100644 --- a/src/java/org/apache/poi/hssf/record/FormulaRecord.java +++ b/src/java/org/apache/poi/hssf/record/FormulaRecord.java @@ -179,7 +179,6 @@ public class FormulaRecord * * @return calculated value */ - public double getValue() { return field_4_value; @@ -190,7 +189,6 @@ public class FormulaRecord * * @return bitmask */ - public short getOptions() { return field_5_options; @@ -200,21 +198,24 @@ public class FormulaRecord return sharedFormula.isSet(field_5_options); } public void setSharedFormula(boolean flag) { - sharedFormula.setBoolean(field_5_options, flag); + field_5_options = + sharedFormula.setShortBoolean(field_5_options, flag); } public boolean isAlwaysCalc() { return alwaysCalc.isSet(field_5_options); } public void setAlwaysCalc(boolean flag) { - alwaysCalc.setBoolean(field_5_options, flag); + field_5_options = + alwaysCalc.setShortBoolean(field_5_options, flag); } public boolean isCalcOnLoad() { return calcOnLoad.isSet(field_5_options); } public void setCalcOnLoad(boolean flag) { - calcOnLoad.setBoolean(field_5_options, flag); + field_5_options = + calcOnLoad.setShortBoolean(field_5_options, flag); } /**