DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43633>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=43633


[EMAIL PROTECTED] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
          Component|pdf                         |page-master/layout
         OS/Version|Windows 2000                |All
            Version|0.94                        |1.0dev




------- Additional Comments From [EMAIL PROTECTED]  2007-10-17 08:16 -------
Hi Guillaume,

Thanks for reporting the bug. Although your test table is a bit odd since it
contains an empty row (row 2). You can work around the problem by adding an
empty cell in the row that contains the spanning cell:
<fo:table-cell>
  <fo:block/>
</fo:table-cell>
That way you will get the expected result.

For devs: at least this test is a showcase for the strange loop in
RowPainter.addAreasForCell ;-)
Since row 2 is empty (contains no cell ending on this row), no
TableContentPosition is created for this row. Thus, in
RowPainter.handleTableContentPosition, the first test is never triggered for row
2. So in addAreasAndFlushRow, the yoffset of row 2 is not recorded. And in
addAreasForCell, when the offset of the first row spanned by the spanning cell
is searched, it's not found so the while loop is triggered and the offset of the
previous row is returned instead.
As a consequence, the spanning cell, starting on row 2, gets the same offset as
cell 1.1, and overrides it.

I'll have a look at this later on, since the whole code handling empty/missing
cells needs some touch-up anyway.

Vincent

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

Reply via email to