]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Decorate warning with location info.
authorJeremias Maerki <jeremias@apache.org>
Thu, 9 Feb 2006 10:34:17 +0000 (10:34 +0000)
committerJeremias Maerki <jeremias@apache.org>
Thu, 9 Feb 2006 10:34:17 +0000 (10:34 +0000)
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

index cce2d671c0834596381e516b7ececcf4a71d88ec..f6071da30364f9f02ae62c0bd4e265bf73844c5f 100644 (file)
@@ -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));
             }
         }
     }