aboutsummaryrefslogtreecommitdiffstats
path: root/fop-core
diff options
context:
space:
mode:
authorChris Bowditch <cbowditch@apache.org>2019-06-04 15:47:58 +0000
committerChris Bowditch <cbowditch@apache.org>2019-06-04 15:47:58 +0000
commit2474e10c00e0bab97aeae8e7bb311d0279de08f5 (patch)
tree1bcf4bbe565ef4cbf1533d50445afe9ba40a0e56 /fop-core
parente93df1c62d5d58e96fe0b2053d29b2d21be134a8 (diff)
downloadxmlgraphics-fop-2474e10c00e0bab97aeae8e7bb311d0279de08f5.tar.gz
xmlgraphics-fop-2474e10c00e0bab97aeae8e7bb311d0279de08f5.zip
fix FOP-2624
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1860626 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'fop-core')
-rw-r--r--fop-core/src/main/java/org/apache/fop/render/rtf/RTFHandler.java3
-rw-r--r--fop-core/src/main/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfTableCell.java10
2 files changed, 3 insertions, 10 deletions
diff --git a/fop-core/src/main/java/org/apache/fop/render/rtf/RTFHandler.java b/fop-core/src/main/java/org/apache/fop/render/rtf/RTFHandler.java
index 36a201a8f..a4a63afc6 100644
--- a/fop-core/src/main/java/org/apache/fop/render/rtf/RTFHandler.java
+++ b/fop-core/src/main/java/org/apache/fop/render/rtf/RTFHandler.java
@@ -437,8 +437,7 @@ public class RTFHandler extends FOEventHandler {
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());
diff --git a/fop-core/src/main/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfTableCell.java b/fop-core/src/main/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfTableCell.java
index 731800fdb..fdcda090d 100644
--- a/fop-core/src/main/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfTableCell.java
+++ b/fop-core/src/main/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfTableCell.java
@@ -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;
}
}