diff options
author | Jeremias Maerki <jeremias@apache.org> | 2008-02-12 08:23:04 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2008-02-12 08:23:04 +0000 |
commit | 4de57c512a5284ae37e510f4ae616e090c8027cb (patch) | |
tree | c5781df7c669c4a740da5c15d0ee097891451255 /src/java/org/apache/fop/layoutmgr | |
parent | 160c3e76529e7d665e0899d50821140751faed7c (diff) | |
download | xmlgraphics-fop-4de57c512a5284ae37e510f4ae616e090c8027cb.tar.gz xmlgraphics-fop-4de57c512a5284ae37e510f4ae616e090c8027cb.zip |
Bugzilla #44393:
Recognize the newly used EN_AUTO constant for break values. Other LMs generate a -1 value for this case.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@620723 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/layoutmgr')
-rw-r--r-- | src/java/org/apache/fop/layoutmgr/PageBreaker.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/java/org/apache/fop/layoutmgr/PageBreaker.java b/src/java/org/apache/fop/layoutmgr/PageBreaker.java index cfc4b55bf..cf830a7ec 100644 --- a/src/java/org/apache/fop/layoutmgr/PageBreaker.java +++ b/src/java/org/apache/fop/layoutmgr/PageBreaker.java @@ -470,7 +470,9 @@ public class PageBreaker extends AbstractBreaker { } else if (breakVal == Constants.EN_NONE) { curPage.getPageViewport().createSpan(false); return; - } else if (breakVal == Constants.EN_COLUMN || breakVal <= 0) { + } else if (breakVal == Constants.EN_COLUMN + || breakVal <= 0 + || breakVal == Constants.EN_AUTO) { PageViewport pv = curPage.getPageViewport(); //Check if previous page was spanned |