Bug 47101 - Table in marker gets duplicated at each marker retrieval
Summary: Table in marker gets duplicated at each marker retrieval
Status: CLOSED FIXED
Alias: None
Product: Fop - Now in Jira
Classification: Unclassified
Component: page-master/layout (show other bugs)
Version: trunk
Hardware: PC Windows XP
: P2 regression
Target Milestone: ---
Assignee: fop-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-27 00:54 UTC by Joseph Poidevin
Modified: 2012-04-01 06:34 UTC (History)
0 users



Attachments
fo file and resulting pdf (19.49 KB, application/octet-stream)
2009-04-27 00:54 UTC, Joseph Poidevin
Details
Simplified FO file showing the problem (2.60 KB, text/x-xslfo)
2009-05-07 03:39 UTC, Vincent Hennebert
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Joseph Poidevin 2009-04-27 00:54:30 UTC
Created attachment 23547 [details]
fo file and resulting pdf

if i use table in a Region Before or a Region after, table is duplicated. it seems table is multiplicated by the page number : 2 table on page 2, 3 on page 3, etc.

it was not the case with previous version.

i have joined a FO file to reproduce the bug and the resulting PDF.
Comment 1 Vincent Hennebert 2009-05-07 03:39:27 UTC
Created attachment 23623 [details]
Simplified FO file showing the problem

Thank you for your bug report. I attach a simplified FO file that can be used for debugging. Not sure what is the reason for the duplication of the table though.
Comment 2 Andreas L. Delmelle 2009-05-07 13:25:36 UTC
(In reply to comment #1)
> Created an attachment (id=23623) [details]
> Simplified FO file showing the problem
> 
> Thank you for your bug report. I attach a simplified FO file that can be used
> for debugging. Not sure what is the reason for the duplication of the table
> though.

I did a quick check here, but haven't found out what the exact cause is either.
One interesting thing I did notice so far: it is not the table that is duplicated, but the table-cell. On the first page, I get only one call to TableCellLM. On the second page, I get two, made by the same RowGroupLM. The table-body on the second page has its rowGroups set to 2...
Comment 3 Andreas L. Delmelle 2009-05-07 13:33:43 UTC
Most likely cause: when cloning the table-body upon each marker-retrieval, it does not go deep enough. Some member (can't tell yet which one exactly) is copied as a reference, while it should, in fact, be an entirely separate instance. Overriding clone() in the corresponding FONode type (TablePart?) to add specific behavior may just be enough to fix this...
Comment 4 Vincent Hennebert 2009-05-13 03:29:13 UTC
Fixed in rev. 774280
http://svn.apache.org/viewvc?view=rev&revision=774280
Comment 5 Glenn Adams 2012-04-01 06:34:09 UTC
batch transition pre-FOP1.0 resolved+fixed bugs to closed+fixed