aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/java/org/apache/fop/fo/FObjMixed.java3
-rw-r--r--test/layoutengine/standard-testcases/wrapper_block.xml1
2 files changed, 3 insertions, 1 deletions
diff --git a/src/java/org/apache/fop/fo/FObjMixed.java b/src/java/org/apache/fop/fo/FObjMixed.java
index 698fc58f2..bf7383398 100644
--- a/src/java/org/apache/fop/fo/FObjMixed.java
+++ b/src/java/org/apache/fop/fo/FObjMixed.java
@@ -134,7 +134,8 @@ public abstract class FObjMixed extends FObj {
if (foNameId == FO_BLOCK) {
tmpText.createBlockPointers((org.apache.fop.fo.flow.Block) fo);
((FObjMixed) fo).lastFOTextProcessed = tmpText;
- } else if (foNameId == FO_PAGE_SEQUENCE) {
+ } else if (foNameId == FO_PAGE_SEQUENCE
+ && tmpText.willCreateArea()) {
log.error("Could not create block pointers."
+ " FOText w/o Block ancestor.");
}
diff --git a/test/layoutengine/standard-testcases/wrapper_block.xml b/test/layoutengine/standard-testcases/wrapper_block.xml
index 295b7b968..490bab995 100644
--- a/test/layoutengine/standard-testcases/wrapper_block.xml
+++ b/test/layoutengine/standard-testcases/wrapper_block.xml
@@ -41,6 +41,7 @@
<checks>
<!-- Just check if this really results in 1 line. -->
<element-list category="breaker">
+ <skip>2</skip>
<box w="14400"/>
<skip>3</skip>
</element-list>