fixed order of operators

git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@352522 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Andrew C. Oliver 2002-04-28 15:35:38 +00:00
parent fd71ea023c
commit a327fa328d

View File

@ -118,9 +118,10 @@ public class PowerPtg
{ {
StringBuffer buffer = new StringBuffer(); StringBuffer buffer = new StringBuffer();
buffer.append(operands[ 1 ].toFormulaString());
buffer.append("^");
buffer.append(operands[ 0 ].toFormulaString()); buffer.append(operands[ 0 ].toFormulaString());
buffer.append("^");
buffer.append(operands[ 1 ].toFormulaString());
return buffer.toString(); return buffer.toString();
} }
@ -128,9 +129,10 @@ public class PowerPtg
public String toFormulaString(String[] operands) { public String toFormulaString(String[] operands) {
StringBuffer buffer = new StringBuffer(); StringBuffer buffer = new StringBuffer();
buffer.append(operands[ 1 ]);
buffer.append("^");
buffer.append(operands[ 0 ]); buffer.append(operands[ 0 ]);
buffer.append("^");
buffer.append(operands[ 1 ]);
return buffer.toString(); return buffer.toString();
} }