소스 검색

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 년 전
부모
커밋
c40d602973
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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 파일 보기

@@ -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…
취소
저장