From: Jeremias Maerki Date: Thu, 9 Feb 2006 10:34:17 +0000 (+0000) Subject: Decorate warning with location info. X-Git-Tag: fop-0_92-beta~137 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=6e19d34db271c41605032ab391ed500b59aeba85;p=xmlgraphics-fop.git Decorate warning with location info. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@376250 13f79535-47bb-0310-9956-ffa450edef68 --- 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)); } } }