aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2006-10-07 13:17:57 +0000
committerJeremias Maerki <jeremias@apache.org>2006-10-07 13:17:57 +0000
commit2d736c5f0c6905e14bd7dd732ca0cd4d4b9a7338 (patch)
treefc7c3e4aed5ff996f1e5492ecab12044ae85ddb7
parent569693cad7dc3fc27e3b25ec621e9675490464f7 (diff)
downloadxmlgraphics-fop-2d736c5f0c6905e14bd7dd732ca0cd4d4b9a7338.tar.gz
xmlgraphics-fop-2d736c5f0c6905e14bd7dd732ca0cd4d4b9a7338.zip
Fixed a compilation problem.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@453899 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--src/java/org/apache/fop/layoutmgr/inline/LineLayoutManager.java9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/java/org/apache/fop/layoutmgr/inline/LineLayoutManager.java b/src/java/org/apache/fop/layoutmgr/inline/LineLayoutManager.java
index f1dba6d93..b3e1e33ba 100644
--- a/src/java/org/apache/fop/layoutmgr/inline/LineLayoutManager.java
+++ b/src/java/org/apache/fop/layoutmgr/inline/LineLayoutManager.java
@@ -348,7 +348,10 @@ public class LineLayoutManager extends InlineStackingLayoutManager
public void updateData1(int lineCount, double demerits) {
lineLayouts.addPossibility(lineCount, demerits);
- log.trace("Layout possibility in " + lineCount + " lines; break at position:");
+ if (super.log.isTraceEnabled()) {
+ super.log.trace(
+ "Layout possibility in " + lineCount + " lines; break at position:");
+ }
}
public void updateData2(KnuthNode bestActiveNode,
@@ -381,8 +384,8 @@ public class LineLayoutManager extends InlineStackingLayoutManager
}
if (difference + bestActiveNode.availableShrink < 0) {
- if (log.isWarnEnabled()) {
- log.warn(FONode.decorateWithContextInfo(
+ if (super.log.isWarnEnabled()) {
+ super.log.warn(FONode.decorateWithContextInfo(
"Line " + (addedPositions + 1)
+ " of a paragraph overflows the available area.", getFObj()));
}