]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
This is supposed to fix a problem that surfaced with Finn's latest change in PageSequ...
authorJeremias Maerki <jeremias@apache.org>
Sun, 10 Oct 2004 11:21:28 +0000 (11:21 +0000)
committerJeremias Maerki <jeremias@apache.org>
Sun, 10 Oct 2004 11:21:28 +0000 (11:21 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198019 13f79535-47bb-0310-9956-ffa450edef68

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

index e65ae13e1abb8ba530a6f89e6972a7389b473648..747dd624d205172705871e8185786202719e301a 100644 (file)
@@ -1407,6 +1407,7 @@ public class LineLayoutManager extends InlineStackingLayoutManager {
     public void addAreas(PositionIterator parentIter, double dSpaceAdjust) {
         LayoutManager childLM;
         LayoutContext lc = new LayoutContext(0);
+        iCurrParIndex = 0;
         while (parentIter.hasNext()) {
             ListIterator paragraphIterator = null;
             KnuthElement tempElement = null;
@@ -1459,7 +1460,7 @@ public class LineLayoutManager extends InlineStackingLayoutManager {
             iStartElement = lbp.getLeafPos() + 1;
             if (iStartElement == currPar.size()) {
                 // advance to next paragraph
-                iCurrParIndex ++;
+                iCurrParIndex++;
                 iStartElement = 0;
             }