aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Adams <gadams@apache.org>2012-04-05 02:41:59 +0000
committerGlenn Adams <gadams@apache.org>2012-04-05 02:41:59 +0000
commite3a156d11eccb3d56ee21d250c114a077697b73f (patch)
tree3d8307a07a9cbdeba29a3b39ca6afca8b38a3955
parentc3ad778fa810332a2f24ce9328c142fb654ae8a6 (diff)
downloadxmlgraphics-fop-e3a156d11eccb3d56ee21d250c114a077697b73f.tar.gz
xmlgraphics-fop-e3a156d11eccb3d56ee21d250c114a077697b73f.zip
Buzilla #51807: Fixed small memory waste in rowCells array construction.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1309636 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--src/java/org/apache/fop/layoutmgr/table/TableStepper.java2
-rw-r--r--status.xml3
2 files changed, 4 insertions, 1 deletions
diff --git a/src/java/org/apache/fop/layoutmgr/table/TableStepper.java b/src/java/org/apache/fop/layoutmgr/table/TableStepper.java
index 7e37eeb59..c58febd0e 100644
--- a/src/java/org/apache/fop/layoutmgr/table/TableStepper.java
+++ b/src/java/org/apache/fop/layoutmgr/table/TableStepper.java
@@ -200,7 +200,7 @@ public class TableStepper {
LinkedList footnoteList = new LinkedList();
//Put all involved grid units into a list
- List cellParts = new java.util.ArrayList(columnCount);
+ List cellParts = new java.util.ArrayList(activeCells.size());
for (Iterator iter = activeCells.iterator(); iter.hasNext();) {
ActiveCell activeCell = (ActiveCell) iter.next();
CellPart part = activeCell.createCellPart();
diff --git a/status.xml b/status.xml
index b0ffd0180..08274c395 100644
--- a/status.xml
+++ b/status.xml
@@ -62,6 +62,9 @@
documents. Example: the fix of marks layering will be such a case when it's done.
-->
<release version="FOP Trunk" date="TBD">
+ <action context="Code" dev="GA" type="fix" fixes-bug="51807" due-to="Sergey Vladimirov">
+ Fixed small memory waste in rowCells array construction.
+ </action>
<action context="Code" dev="GA" type="fix" fixes-bug="53005" due-to="Alberto Simões">
Fixed incorrect rejection of fo:wrapper inside fo:inline inside fo:footnote-body.
</action>