mirror of https://github.com/apache/poi.git
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:
parent
0ec95eedda
commit
868b1a96b6
|
@ -118,9 +118,10 @@ public class PowerPtg
|
|||
{
|
||||
StringBuffer buffer = new StringBuffer();
|
||||
|
||||
buffer.append(operands[ 1 ].toFormulaString());
|
||||
buffer.append("^");
|
||||
buffer.append(operands[ 0 ].toFormulaString());
|
||||
buffer.append("^");
|
||||
buffer.append(operands[ 1 ].toFormulaString());
|
||||
|
||||
return buffer.toString();
|
||||
}
|
||||
|
||||
|
@ -128,9 +129,10 @@ public class PowerPtg
|
|||
public String toFormulaString(String[] operands) {
|
||||
StringBuffer buffer = new StringBuffer();
|
||||
|
||||
buffer.append(operands[ 1 ]);
|
||||
buffer.append("^");
|
||||
|
||||
buffer.append(operands[ 0 ]);
|
||||
buffer.append("^");
|
||||
buffer.append(operands[ 1 ]);
|
||||
return buffer.toString();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue