Преглед на файлове

Bugfix: Table headers were omitted when a table is a child of a block-container.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@412407 13f79535-47bb-0310-9956-ffa450edef68
tags/fop-0_93
Jeremias Maerki преди 18 години
родител
ревизия
5ff1b803b5

+ 1
- 1
src/java/org/apache/fop/layoutmgr/BlockContainerLayoutManager.java Целия файл

@@ -701,7 +701,7 @@ public class BlockContainerLayoutManager extends BlockStackingLayoutManager
}
lastPos = pos;
}
Position innerPosition = null;
Position innerPosition = pos;
if (pos instanceof NonLeafPosition) {
innerPosition = ((NonLeafPosition)pos).getPosition();
}

+ 7
- 0
status.xml Целия файл

@@ -27,6 +27,13 @@

<changes>
<release version="FOP Trunk">
<action context="Code" dev="JM" type="fix">
Bugfix: Table headers were omitted when a table is a child of a block-container.
</action>
<action context="Code" dev="JM" type="fix">
Bugfix: Bookmarks in PDF will be generated even if some bookmarks cannot be
resolved.
</action>
<action context="Code" dev="AD" type="fix" fixes-bug="39560">
Bugfix: the interaction between the table FOs and properties package in
determining initial values for column-number should be a one-time process,

+ 87
- 0
test/layoutengine/standard-testcases/table-header_in_bc_bug.xml Целия файл

@@ -0,0 +1,87 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright 2006 The Apache Software Foundation

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!-- $Id$ -->
<testcase>
<info>
<p>
This test checks a bug where the header is omitted when the table is a descendant of a block-container.
</p>
</info>
<fo>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:layout-master-set>
<fo:simple-page-master master-name="normal" page-width="3in" page-height="1in">
<fo:region-body/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="normal">
<fo:flow flow-name="xsl-region-body">
<fo:block-container>
<!--fo:block-->
<fo:table table-layout="fixed" width="100%" border-collapse="separate">
<fo:table-column column-width="100pt" text-align="right"/>
<fo:table-header>
<fo:table-row>
<fo:table-cell padding-left="3pt" padding-top="1pt" border-style="solid" border-width="thin" padding-right="0.25cm" id="header-cell">
<fo:block text-align="center">Header</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-header>
<fo:table-body>
<fo:table-row>
<fo:table-cell padding-left="3pt" padding-top="1pt" border-style="solid" border-width="thin" padding-right="0.25cm">
<fo:block text-align="right">1</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell padding-left="3pt" padding-top="1pt" border-style="solid" border-width="thin" padding-right="0.25cm">
<fo:block text-align="right">2</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell padding-left="3pt" padding-top="1pt" border-style="solid" border-width="thin" padding-right="0.25cm">
<fo:block text-align="right">3</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell padding-left="3pt" padding-top="1pt" border-style="solid" border-width="thin" padding-right="0.25cm">
<fo:block text-align="right">4</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell padding-left="3pt" padding-top="1pt" border-style="solid" border-width="thin" padding-right="0.25cm">
<fo:block text-align="right">5</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell padding-left="3pt" padding-top="1pt" border-style="solid" border-width="thin" padding-right="0.25cm">
<fo:block text-align="right">6</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
<!--/fo:block-->
</fo:block-container>
</fo:flow>
</fo:page-sequence>
</fo:root>
</fo>
<checks>
<eval expected="1" xpath="count(//pageViewport[1]//block[@prod-id='header-cell'])"/>
<eval expected="1" xpath="count(//pageViewport[2]//block[@prod-id='header-cell'])"/>
</checks>
</testcase>

Loading…
Отказ
Запис