Author: spepping
Date: Thu Jan 17 12:38:24 2008
New Revision: 612968

URL: http://svn.apache.org/viewvc?rev=612968&view=rev
Log:
Fixed a bug in AbstractLM.rewrapPositions, which assigned the
new index to pos instead of to newPos

Modified:
    
xmlgraphics/fop/branches/Temp_Interleaved_Page_Line_Breaking/src/java/org/apache/fop/layoutmgr/AbstractLayoutManager.java

Modified: 
xmlgraphics/fop/branches/Temp_Interleaved_Page_Line_Breaking/src/java/org/apache/fop/layoutmgr/AbstractLayoutManager.java
URL: 
http://svn.apache.org/viewvc/xmlgraphics/fop/branches/Temp_Interleaved_Page_Line_Breaking/src/java/org/apache/fop/layoutmgr/AbstractLayoutManager.java?rev=612968&r1=612967&r2=612968&view=diff
==============================================================================
--- 
xmlgraphics/fop/branches/Temp_Interleaved_Page_Line_Breaking/src/java/org/apache/fop/layoutmgr/AbstractLayoutManager.java
 (original)
+++ 
xmlgraphics/fop/branches/Temp_Interleaved_Page_Line_Breaking/src/java/org/apache/fop/layoutmgr/AbstractLayoutManager.java
 Thu Jan 17 12:38:24 2008
@@ -364,10 +364,10 @@
         }
         subPos = subPos.getLM().rewrapPosition(subPos, basePos);
         Position newPos = new NonLeafPosition(this, subPos);
-        newPos.setIndex(pos.getIndex());
         if (isLast(pos)) {
-            pos.setIndex(-1);
-            notifyPos(pos);
+            notifyPos(newPos);
+        } else {
+            newPos.setIndex(pos.getIndex());
         }
         return newPos;
     }



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to