Browse Source

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
tags/fop-1_1rc1old
Glenn Adams 12 years ago
parent
commit
c40d602973
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfSection.java

+ 2
- 2
src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfSection.java View File

@@ -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");
}
}

Loading…
Cancel
Save