From 6e19d34db271c41605032ab391ed500b59aeba85 Mon Sep 17 00:00:00 2001 From: Jeremias Maerki Date: Thu, 9 Feb 2006 10:34:17 +0000 Subject: Decorate warning with location info. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@376250 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/fop/layoutmgr/StaticContentLayoutManager.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/java/org/apache/fop/layoutmgr/StaticContentLayoutManager.java') diff --git a/src/java/org/apache/fop/layoutmgr/StaticContentLayoutManager.java b/src/java/org/apache/fop/layoutmgr/StaticContentLayoutManager.java index cce2d671c..f6071da30 100644 --- a/src/java/org/apache/fop/layoutmgr/StaticContentLayoutManager.java +++ b/src/java/org/apache/fop/layoutmgr/StaticContentLayoutManager.java @@ -25,6 +25,7 @@ import java.util.ListIterator; import org.apache.fop.area.RegionReference; import org.apache.fop.area.Area; import org.apache.fop.area.Block; +import org.apache.fop.fo.FONode; import org.apache.fop.fo.pagination.PageSequence; import org.apache.fop.fo.pagination.SideRegion; import org.apache.fop.fo.pagination.StaticContent; @@ -233,7 +234,8 @@ public class StaticContentLayoutManager extends BlockStackingLayoutManager { if (regionFO.getOverflow() == EN_ERROR_IF_OVERFLOW) { //TODO throw layout exception } - log.warn("static-content overflows the available area."); + log.warn(FONode.decorateWithContextInfo( + "static-content overflows the available area.", fobj)); } } } -- cgit v1.2.3