From 69b99aa672cb52be115c72b6880c5457322de3ec Mon Sep 17 00:00:00 2001 From: Josh Micich Date: Thu, 9 Oct 2008 16:10:39 +0000 Subject: [PATCH] Should have been submitted with r703100 (changes to Ptg) git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@703197 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/org/apache/poi/hssf/usermodel/HSSFChart.java | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/scratchpad/src/org/apache/poi/hssf/usermodel/HSSFChart.java b/src/scratchpad/src/org/apache/poi/hssf/usermodel/HSSFChart.java index 3a7c5c20e0..3b1fd1e1e7 100644 --- a/src/scratchpad/src/org/apache/poi/hssf/usermodel/HSSFChart.java +++ b/src/scratchpad/src/org/apache/poi/hssf/usermodel/HSSFChart.java @@ -20,7 +20,6 @@ package org.apache.poi.hssf.usermodel; import java.util.ArrayList; import java.util.Iterator; import java.util.List; -import java.util.Stack; import org.apache.poi.hssf.record.AreaFormatRecord; import org.apache.poi.hssf.record.AxisLineFormatRecord; @@ -68,6 +67,7 @@ import org.apache.poi.hssf.record.UnknownRecord; import org.apache.poi.hssf.record.VCenterRecord; import org.apache.poi.hssf.record.ValueRangeRecord; import org.apache.poi.hssf.record.formula.Area3DPtg; +import org.apache.poi.hssf.record.formula.Ptg; /** * Has methods for construction of a chart object. @@ -759,11 +759,9 @@ public final class HSSFChart { r.setCustomNumberFormat( false ); r.setIndexNumberFmtRecord( (short) 0 ); LinkedDataFormulaField formula = new LinkedDataFormulaField(); - Stack tokens = new Stack(); Area3DPtg p = new Area3DPtg(0, 31, 1, 1, false, false, false, false, 0); - tokens.add( p ); - formula.setFormulaTokens( tokens ); + formula.setFormulaTokens(new Ptg[] { p, }); r.setFormulaOfLink( formula ); return r; } @@ -776,11 +774,9 @@ public final class HSSFChart { r.setCustomNumberFormat( false ); r.setIndexNumberFmtRecord( (short) 0 ); LinkedDataFormulaField formula = new LinkedDataFormulaField(); - Stack tokens = new Stack(); Area3DPtg p = new Area3DPtg(0, 31, 0, 0, false, false, false, false, 0); - tokens.add( p ); - formula.setFormulaTokens( tokens ); + formula.setFormulaTokens(new Ptg[] { p, }); r.setFormulaOfLink( formula ); return r; } -- 2.39.5