From: Simon Steiner Date: Fri, 4 Mar 2016 14:20:59 +0000 (+0000) Subject: FOP-2586: Content overflows error not shown with log4j X-Git-Tag: fop-2_2~88 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=3748256e082ad122381d5ce4296a7ad3b98f371a;p=xmlgraphics-fop.git FOP-2586: Content overflows error not shown with log4j git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1733598 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/fop/layoutmgr/inline/LineLayoutManager.java b/src/java/org/apache/fop/layoutmgr/inline/LineLayoutManager.java index 075199e5e..4d798cc19 100644 --- a/src/java/org/apache/fop/layoutmgr/inline/LineLayoutManager.java +++ b/src/java/org/apache/fop/layoutmgr/inline/LineLayoutManager.java @@ -392,22 +392,20 @@ public class LineLayoutManager extends InlineStackingLayoutManager addedPositions = 0; } - if (log.isWarnEnabled()) { - int lack = difference + bestActiveNode.availableShrink; - // if this LLM is nested inside a BlockContainerLayoutManager that is constraining - // the available width and thus responsible for the overflow then we do not issue - // warning event here and instead let the BCLM handle that at a later stage - if (lack < 0 && !handleOverflow(-lack)) { - InlineLevelEventProducer eventProducer - = InlineLevelEventProducer.Provider.get( - getFObj().getUserAgent().getEventBroadcaster()); - if (curChildLM.getFObj() == null) { - eventProducer.lineOverflows(this, getFObj().getName(), bestActiveNode.line, - -lack, getFObj().getLocator()); - } else { - eventProducer.lineOverflows(this, curChildLM.getFObj().getName(), bestActiveNode.line, - -lack, curChildLM.getFObj().getLocator()); - } + int lack = difference + bestActiveNode.availableShrink; + // if this LLM is nested inside a BlockContainerLayoutManager that is constraining + // the available width and thus responsible for the overflow then we do not issue + // warning event here and instead let the BCLM handle that at a later stage + if (lack < 0 && !handleOverflow(-lack)) { + InlineLevelEventProducer eventProducer + = InlineLevelEventProducer.Provider.get( + getFObj().getUserAgent().getEventBroadcaster()); + if (curChildLM.getFObj() == null) { + eventProducer.lineOverflows(this, getFObj().getName(), bestActiveNode.line, + -lack, getFObj().getLocator()); + } else { + eventProducer.lineOverflows(this, curChildLM.getFObj().getName(), bestActiveNode.line, + -lack, curChildLM.getFObj().getLocator()); } }