]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Wrong line number reported in the case of a line overflow.
authorJeremias Maerki <jeremias@apache.org>
Tue, 17 Jun 2008 08:54:07 +0000 (08:54 +0000)
committerJeremias Maerki <jeremias@apache.org>
Tue, 17 Jun 2008 08:54:07 +0000 (08:54 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/fop-0_95@668570 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/layoutmgr/inline/LineLayoutManager.java

index 9a818232c43f0f11f01b1ec79c1a73b8d430b995..fb37884b5c89365c0d7867f1947b62e1ec2fd486 100644 (file)
@@ -386,7 +386,7 @@ public class LineLayoutManager extends InlineStackingLayoutManager
                 if (lack < 0) {
                     String textDiff = (lack < -50000 ? "more than 50 points" : (-lack) + "mpt");
                     log.warn(FONode.decorateWithContextInfo(
-                            "Line " + (addedPositions + 1) 
+                            "Line " + bestActiveNode.line 
                             + " of a paragraph overflows the available area by "
                             + textDiff + ".", getFObj()));
                 }