Bug 36720 - erroneous cell overlap code
Summary: erroneous cell overlap code
Status: CLOSED FIXED
Alias: None
Product: Fop - Now in Jira
Classification: Unclassified
Component: fo tree (show other bugs)
Version: trunk
Hardware: Other other
: P2 major
Target Milestone: ---
Assignee: fop-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-20 00:49 UTC by Matthew Daniel
Modified: 2012-04-01 06:35 UTC (History)
0 users



Attachments
Testcase showing my error (1.57 KB, text/plain)
2005-09-20 00:50 UTC, Matthew Daniel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matthew Daniel 2005-09-20 00:49:46 UTC
Fop-HEAD worked on Friday, but when I refreshed this morning it would no longer
render my nested table.

I isolated the issue and created a fotree/testcase for it.

    [junit] org.apache.fop.apps.FOPException:
file:///usr/src/cvs/apache/fop/test/fotree/testcases/column-number_nested.fo:29:38:
cell overlaps in column 2
    [junit] javax.xml.transform.TransformerException:
org.apache.fop.apps.FOPException:
file:///usr/src/cvs/apache/fop/test/fotree/testcases/column-number_nested.fo:29:38:
cell overlaps in column 2
    [junit]     at
org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:501)
    [junit]     at
org.apache.fop.fotreetest.FOTreeTester.runTest(FOTreeTester.java:65)
    [junit]     at
org.apache.fop.fotreetest.FOTreeTestSuite$FOTreeTestCase.testMain(FOTreeTestSuite.java:121)
    [junit]     at
org.apache.fop.fotreetest.FOTreeTestSuite$1.runTest(FOTreeTestSuite.java:100)
    [junit] Caused by: org.apache.fop.apps.FOPException:
file:///usr/src/cvs/apache/fop/test/fotree/testcases/column-number_nested.fo:29:38:
cell overlaps in column 2
    [junit]     at org.apache.fop.fo.flow.TableCell.bind(TableCell.java:139)
    [junit]     at org.apache.fop.fo.FObj.processNode(FObj.java:121)
    [junit]     at
org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:271)
Comment 1 Matthew Daniel 2005-09-20 00:50:48 UTC
Created attachment 16452 [details]
Testcase showing my error
Comment 2 Andreas L. Delmelle 2005-09-20 00:57:38 UTC
Sorry, I'll have a look ASAP. Is caused by my implementation for default column-numbers.
Such a simple example, and yet...?

Will get back on this tomorrow.

Comment 3 Andreas L. Delmelle 2005-09-20 13:46:06 UTC
Solved it, but unfortunately I can't commit the code from where I work, so 
expect the fix (and some other important modifications) in about 4-5 hours.
FWIW: the key is that I forgot one simple but *very* important line of code in 
org.apache.fop.fo.FOPropertyMapping.java -- below line 2390 the following 
should be added
m.setInherited(false);

Adding this should at least provide you with a temporary band-aid.
Comment 4 Andreas L. Delmelle 2005-09-20 18:19:43 UTC
The attached FO should work now. Still a few modifications pending WRT spanning cells in a table with 
unused column-numbers. Expect these later on (in an hour or so).
Comment 5 Glenn Adams 2012-04-01 06:35:14 UTC
batch transition pre-FOP1.0 resolved+fixed bugs to closed+fixed