diff options
author | Vincent Hennebert <vhennebert@apache.org> | 2007-11-13 16:24:32 +0000 |
---|---|---|
committer | Vincent Hennebert <vhennebert@apache.org> | 2007-11-13 16:24:32 +0000 |
commit | 5675e7ef51aeb29596ab0f6e5f6af6e485759d8f (patch) | |
tree | b179d94d2bbf036fa109023ada64bf2bf792a924 /src/java/org/apache/fop/fo/properties/CommonBorderPaddingBackground.java | |
parent | 6173b3f00ff40c590420cc4119bb3a486cff2b27 (diff) | |
download | xmlgraphics-fop-5675e7ef51aeb29596ab0f6e5f6af6e485759d8f.tar.gz xmlgraphics-fop-5675e7ef51aeb29596ab0f6e5f6af6e485759d8f.zip |
Moved the creation of grid units to the FO tree building stage. Brought a few improvements along with the move:
- bugfix: border-resolution for border-end on row-spanning cells was wrong
- bugfix: in case of missing cells the border-end of the table was applied to an inner cell, instead of the cell in the last column (but missing cells aren't painted yet :-\)
- bugfix: in collapsing-border model, border-before and -after specified on table-column were applied to every cell of the column, instead of only the first and the last ones
- border resolution is now made progressively when possible, and no longer triggers the fetching of all the rows of the table
Added testcases for the border conflict resolution (between the various elements of a table and not only the cells)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@594571 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/fo/properties/CommonBorderPaddingBackground.java')
-rwxr-xr-x | src/java/org/apache/fop/fo/properties/CommonBorderPaddingBackground.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/java/org/apache/fop/fo/properties/CommonBorderPaddingBackground.java b/src/java/org/apache/fop/fo/properties/CommonBorderPaddingBackground.java index d021ec922..114dadb94 100755 --- a/src/java/org/apache/fop/fo/properties/CommonBorderPaddingBackground.java +++ b/src/java/org/apache/fop/fo/properties/CommonBorderPaddingBackground.java @@ -83,7 +83,7 @@ public class CommonBorderPaddingBackground { private Color mColor; // Border color private CondLengthProperty mWidth; - BorderInfo(int style, CondLengthProperty width, Color color) { + public BorderInfo(int style, CondLengthProperty width, Color color) { mStyle = style; mWidth = width; mColor = color; @@ -227,7 +227,11 @@ public class CommonBorderPaddingBackground { * @return the border info for a side */ public BorderInfo getBorderInfo(int side) { - return this.borderInfo[side]; + if (this.borderInfo[side] == null) { + return new BorderInfo(Constants.EN_NONE, null, null); // TODO + } else { + return this.borderInfo[side]; + } } /** |