[prev in list] [next in list] [prev in thread] [next in thread]
List: fop-dev
Subject: [jira] [Commented] (FOP-2481) AssertionError at BalancingColumnBreakingAlgorithm.getInitialBreaks
From: "TLX (Jira)" <jira () apache ! org>
Date: 2021-11-29 21:36:00
Message-ID: JIRA.12835643.1433493794000.75051.1638221760023 () Atlassian ! JIRA
[Download RAW message or body]
[ https://issues.apache.org/jira/browse/FOP-2481?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17450722#comment-17450722 \
]
TLX commented on FOP-2481:
--------------------------
Okay, I found the answer myself: A block-container that contains only absolutely \
positioned children counts as empty to the algorithm. That way it will crash \
everything by leading to that AssertionError.
Solution: Assing span="all" to that block-container. By doing so it won't trigger the \
column-distribution algorithm.
It would be great if this could throw a regular exception that explains what's wrong. \
AssertionErrors shouldn't be used to catch invalid user input.
> AssertionError at BalancingColumnBreakingAlgorithm.getInitialBreaks
> -------------------------------------------------------------------
>
> Key: FOP-2481
> URL: https://issues.apache.org/jira/browse/FOP-2481
> Project: FOP
> Issue Type: Bug
> Reporter: Simon Steiner
> Priority: Major
> Attachments: exception.fo
>
>
> AssertionError
> at org.apache.fop.layoutmgr.BalancingColumnBreakingAlgorithm.getInitialBreaks(BalancingColumnBreakingAlgorithm.java:171)
> export FOP_OPTS=-ea
> fop exception.fo out.pdf
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic