git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353553 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Glen Stampoultzis 2004-04-29 07:16:36 +00:00
parent e90590e97d
commit 1235801aba

View File

@ -738,17 +738,18 @@ end;
} }
private void setParameterRVA(Node n, int formulaType) { private void setParameterRVA(Node n, int formulaType) {
Ptg p = (Ptg) n.getValue(); Ptg p = n.getValue();
int numOperands = n.getNumChildren();
if (p instanceof AbstractFunctionPtg) { if (p instanceof AbstractFunctionPtg) {
int numOperands = n.getNumChildren(); for (int i =0;i<numOperands;i++) {
for (int i =0;i<n.getNumChildren();i++) {
setParameterRVA(n.getChild(i),((AbstractFunctionPtg)p).getParameterClass(i),formulaType); setParameterRVA(n.getChild(i),((AbstractFunctionPtg)p).getParameterClass(i),formulaType);
if (n.getChild(i).getValue() instanceof AbstractFunctionPtg) { // if (n.getChild(i).getValue() instanceof AbstractFunctionPtg) {
setParameterRVA(n.getChild(i),formulaType); // setParameterRVA(n.getChild(i),formulaType);
} // }
setParameterRVA(n.getChild(i),formulaType);
} }
} else { } else {
for (int i =0;i<n.getNumChildren();i++) { for (int i =0;i<numOperands;i++) {
setParameterRVA(n.getChild(i),formulaType); setParameterRVA(n.getChild(i),formulaType);
} }
} }