poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject svn commit: r703197 - /poi/trunk/src/scratchpad/src/org/apache/poi/hssf/usermodel/HSSFChart.java
Date Thu, 09 Oct 2008 16:10:40 GMT
Author: josh
Date: Thu Oct  9 09:10:39 2008
New Revision: 703197

URL: http://svn.apache.org/viewvc?rev=703197&view=rev
Log:
Should have been submitted with r703100 (changes to Ptg)

Modified:
    poi/trunk/src/scratchpad/src/org/apache/poi/hssf/usermodel/HSSFChart.java

Modified: poi/trunk/src/scratchpad/src/org/apache/poi/hssf/usermodel/HSSFChart.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/src/org/apache/poi/hssf/usermodel/HSSFChart.java?rev=703197&r1=703196&r2=703197&view=diff
==============================================================================
--- poi/trunk/src/scratchpad/src/org/apache/poi/hssf/usermodel/HSSFChart.java (original)
+++ poi/trunk/src/scratchpad/src/org/apache/poi/hssf/usermodel/HSSFChart.java Thu Oct  9 09:10:39
2008
@@ -20,7 +20,6 @@
 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.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 @@
 		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 @@
 		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;
 	}



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org


Mime
View raw message