Forgot to reset shared formula option during conversion

git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@437128 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jason Height 2006-08-26 08:52:24 +00:00
parent 76a2ebcf6e
commit 6e9b265462
2 changed files with 7 additions and 1 deletions

View File

@ -201,6 +201,10 @@ public class FormulaRecord
return sharedFormula.isSet(field_5_options); return sharedFormula.isSet(field_5_options);
} }
public void setSharedFormula(boolean flag) {
sharedFormula.setBoolean(field_5_options, flag);
}
/** /**
* get the length (in number of tokens) of the expression * get the length (in number of tokens) of the expression
* @return expression length * @return expression length

View File

@ -254,6 +254,8 @@ public class SharedFormulaRecord
newPtgStack.add(ptg); newPtgStack.add(ptg);
} }
formula.setParsedExpression(newPtgStack); formula.setParsedExpression(newPtgStack);
//Now its not shared!
formula.setSharedFormula(false);
} else { } else {
throw new RuntimeException("Shared Formula Conversion: Coding Error"); throw new RuntimeException("Shared Formula Conversion: Coding Error");
} }