aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/org/apache/fop/fo/flow/Block.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/org/apache/fop/fo/flow/Block.java b/src/org/apache/fop/fo/flow/Block.java
index 63d15d5cc..6b261cc73 100644
--- a/src/org/apache/fop/fo/flow/Block.java
+++ b/src/org/apache/fop/fo/flow/Block.java
@@ -275,6 +275,10 @@ public class Block extends FObjMixed {
return new Status(Status.FORCE_PAGE_BREAK_EVEN);
}
+ if (breakBefore == BreakBefore.COLUMN) {
+ return new Status(Status.FORCE_COLUMN_BREAK);
+ }
+
int numChildren = this.children.size();
for (int i = 0; i < numChildren; i++) {
FONode fo = (FONode) children.elementAt(i);
@@ -417,6 +421,11 @@ public class Block extends FObjMixed {
return new Status(Status.FORCE_PAGE_BREAK_EVEN);
}
+ if (breakAfter == BreakAfter.COLUMN) {
+ this.marker = BREAK_AFTER;
+ return new Status(Status.FORCE_COLUMN_BREAK);
+ }
+
if (keepWithNext != 0) {
return new Status(Status.KEEP_WITH_NEXT);
}