mirror of https://github.com/apache/poi.git
Properly set the values when calling the boolean sets
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@610435 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
9093d91658
commit
4d4b3081ff
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue