diff options
Diffstat (limited to 'src/java/org/apache/fop/area')
-rw-r--r-- | src/java/org/apache/fop/area/BeforeFloat.java | 3 | ||||
-rw-r--r-- | src/java/org/apache/fop/area/BodyRegion.java | 4 | ||||
-rw-r--r-- | src/java/org/apache/fop/area/Footnote.java | 4 |
3 files changed, 10 insertions, 1 deletions
diff --git a/src/java/org/apache/fop/area/BeforeFloat.java b/src/java/org/apache/fop/area/BeforeFloat.java index 7cd8ec617..2db35a635 100644 --- a/src/java/org/apache/fop/area/BeforeFloat.java +++ b/src/java/org/apache/fop/area/BeforeFloat.java @@ -61,5 +61,8 @@ public class BeforeFloat extends BlockParent { return h; } + public boolean isEmpty() { + return true; // before floats are not yet implemented + } } diff --git a/src/java/org/apache/fop/area/BodyRegion.java b/src/java/org/apache/fop/area/BodyRegion.java index 672b6b66d..ceb28b043 100644 --- a/src/java/org/apache/fop/area/BodyRegion.java +++ b/src/java/org/apache/fop/area/BodyRegion.java @@ -73,7 +73,9 @@ public class BodyRegion extends RegionReference { * @return whether the main reference area has any child areas added to it */ public boolean isEmpty() { - return mainReference == null || mainReference.isEmpty(); + return (mainReference == null || mainReference.isEmpty()) + && (footnote == null || footnote.isEmpty()) + && (beforeFloat == null || beforeFloat.isEmpty()); } diff --git a/src/java/org/apache/fop/area/Footnote.java b/src/java/org/apache/fop/area/Footnote.java index edcff170c..928b39cf5 100644 --- a/src/java/org/apache/fop/area/Footnote.java +++ b/src/java/org/apache/fop/area/Footnote.java @@ -75,5 +75,9 @@ public class Footnote extends BlockParent { public List getChildAreas() { return children; } + + public boolean isEmpty() { + return children == null || children.size() == 0; + } } |