From a327fa328d303cb10eec12a6d601ec74d1093c7a Mon Sep 17 00:00:00 2001 From: "Andrew C. Oliver" Date: Sun, 28 Apr 2002 15:35:38 +0000 Subject: [PATCH] fixed order of operators git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@352522 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/poi/hssf/record/formula/PowerPtg.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/java/org/apache/poi/hssf/record/formula/PowerPtg.java b/src/java/org/apache/poi/hssf/record/formula/PowerPtg.java index d732c8ed2..aab2cef43 100644 --- a/src/java/org/apache/poi/hssf/record/formula/PowerPtg.java +++ b/src/java/org/apache/poi/hssf/record/formula/PowerPtg.java @@ -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(); }