Author: cbowditch Date: Tue Jun 4 15:47:58 2019 New Revision: 1860626 URL: http://svn.apache.org/viewvc?rev=1860626&view=rev Log: fix FOP-2624
Modified: xmlgraphics/fop/trunk/fop-core/src/main/java/org/apache/fop/render/rtf/RTFHandler.java xmlgraphics/fop/trunk/fop-core/src/main/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfTableCell.java Modified: xmlgraphics/fop/trunk/fop-core/src/main/java/org/apache/fop/render/rtf/RTFHandler.java URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/fop-core/src/main/java/org/apache/fop/render/rtf/RTFHandler.java?rev=1860626&r1=1860625&r2=1860626&view=diff ============================================================================== --- xmlgraphics/fop/trunk/fop-core/src/main/java/org/apache/fop/render/rtf/RTFHandler.java (original) +++ xmlgraphics/fop/trunk/fop-core/src/main/java/org/apache/fop/render/rtf/RTFHandler.java Tue Jun 4 15:47:58 2019 @@ -437,8 +437,7 @@ public class RTFHandler extends FOEventH RtfTableCell cellParent = (RtfTableCell)textrun.getParentOfClass(RtfTableCell.class); if (cellParent != null && par != null) { - int iDepth = cellParent.findChildren(textrun); - cellParent.setLastParagraph(par, iDepth); + cellParent.setLastParagraph(par); } int breakValue = toRtfBreakValue(bl.getBreakAfter()); Modified: xmlgraphics/fop/trunk/fop-core/src/main/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfTableCell.java URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/fop-core/src/main/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfTableCell.java?rev=1860626&r1=1860625&r2=1860626&view=diff ============================================================================== --- xmlgraphics/fop/trunk/fop-core/src/main/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfTableCell.java (original) +++ xmlgraphics/fop/trunk/fop-core/src/main/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfTableCell.java Tue Jun 4 15:47:58 2019 @@ -48,7 +48,6 @@ public class RtfTableCell private boolean setRight; private int id; private RtfParagraphBreak lastBreak; - private int lastBreakDepth = Integer.MIN_VALUE; private static final String TABLE_CELL_PARAGRAPH = "cell"; private static final String TABLE_CELL_NESTED_PARAGRAPH = "nestcell"; @@ -555,15 +554,10 @@ public class RtfTableCell * For nested tables it is not necessary. * * @param parBreak the paragraph break element - * @param breakDepth The depth is necessary for picking the correct break element. - * If it is deeper inside the whole cell it will be used, and if there is something on - * the same level (depth) it is also set because the method is called for all breaks - * in the correct order. */ - public void setLastParagraph(RtfParagraphBreak parBreak, int breakDepth) { - if (parBreak != null && breakDepth >= lastBreakDepth) { + public void setLastParagraph(RtfParagraphBreak parBreak) { + if (parBreak != null) { lastBreak = parBreak; - lastBreakDepth = breakDepth; } } --------------------------------------------------------------------- To unsubscribe, e-mail: fop-commits-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-commits-h...@xmlgraphics.apache.org