Browse Source

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
pull/1/merge
Simon Steiner 8 years ago
parent
commit
d7ea92bee2
1 changed files with 14 additions and 16 deletions
  1. 14
    16
      src/java/org/apache/fop/layoutmgr/inline/LineLayoutManager.java

+ 14
- 16
src/java/org/apache/fop/layoutmgr/inline/LineLayoutManager.java View File

@@ -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());
}
}


Loading…
Cancel
Save