aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop
diff options
context:
space:
mode:
authorGlenn Adams <gadams@apache.org>2012-04-26 13:18:53 +0000
committerGlenn Adams <gadams@apache.org>2012-04-26 13:18:53 +0000
commitc40d6029737141c4d86f3b6bde38ce444f8b3bb7 (patch)
treec40ab157129174978dd5285a99bdfb52730cd4ce /src/java/org/apache/fop
parent65ff8fa968cfbea583a779444ded2b343c498ee7 (diff)
downloadxmlgraphics-fop-c40d6029737141c4d86f3b6bde38ce444f8b3bb7.tar.gz
xmlgraphics-fop-c40d6029737141c4d86f3b6bde38ce444f8b3bb7.zip
Bugzilla #51484: Improve test for last section.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1330838 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop')
-rw-r--r--src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfSection.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfSection.java b/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfSection.java
index 2074d3bab..150a46986 100644
--- a/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfSection.java
+++ b/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfSection.java
@@ -193,9 +193,9 @@ implements
* @throws IOException for I/O problems
*/
protected void writeRtfSuffix() throws IOException {
- List siblings = parent.getChildren();
// write suffix /sect only if this section is not last section (see bug #51484)
- if ( siblings.listIterator ( siblings.indexOf ( this ) ) .hasNext() ) {
+ List siblings = parent.getChildren();
+ if ( ( siblings.indexOf ( this ) + 1 ) < siblings.size() ) {
writeControlWord("sect");
}
}
stable30 Nextcloud server, a safe home for all your data: https://github.com/nextcloud/serverwww-data
summaryrefslogtreecommitdiffstats
path: root/tests/acceptance/features/bootstrap/CommentsAppContext.php
blob: 57e60afa60eb19a1974056bc2ffa4f2a8d13ecd2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112