Apache OpenOffice (AOO) Bugzilla – Issue 9718
Table borders do not line up when importing Word XP table
Last modified: 2013-08-07 14:41:36 UTC
I experienced that cell conversion from MSWORD (Office XP Professional) documents depends on the border conditions of cells. Cells with different border settings originally in MSWORD can have different sizes in OOo(!). For example, consider a table which has two rows and two columns and both of the bottom cells have borders in MSWORD. And suppose that in the first line only the (first row, first column) has a LEFT border and no other borders are set. When this table is converted by OOo, one can experience that there is a 1 pixel difference between the upper borders of the two bottom cells. This looks a small difference, but if one has bigger tables it would become very confusing at all(!). I will attach a sample MSWORD file which contains two tables. You can check the one pixel difference in both tables after loading it into OOo 643C. (I used OOo 643C, my machine is a WINDOWS XP Professional Version 2002 with SP1, Intel Pentium III Processor, 450 MHz, and128 MB of RAM)
Created attachment 3833 [details] This is an MSWORD (OfficeXP) file containing 2 tables and demonstrating the bug above...
Tamas, thank you for using and supporting OOo. Duplicated on Win2k server SP3, OOo 643c. Duplicated on RH 8.0, RH OOo 1.0.1. I cannot create this problem from scratch using Word 2K. Note the cell alignment differences between the first column and the second and third column. Using Word 2K if I remove the left and right borders on the first row of the first table, the broken table border does not appear in OOo. Adding the borders back using Word 2K does not create the problem.
User summary 1 pixel difference in imported MSWORD XP tables
Reassigned to MRU
MRU->CMC: I am not able to create such a table from the scratch... do you have an idea, why the horizontal border in the attached file is set in the wrong row after import?
Noncritical, if annoying. Retarget to 2.0
Ok, My idea is that for the borders between the rows word merges the above/below borders of the adjoining cells by taking the widest border of the two and drawing it inside the top margin of the bottom of the pair. Doing that would align the lines correctly, and explain the behaviour I see when playing with some very thick lines
Created attachment 11118 [details] A demo with a thick line to make the point
Working on this now...
ok, implemented as described in portlaoisefilterteam16 for 2.0
reopen to reassign
cmc->mru: Working in portlaoise16 for 2.0 (build: Wed-Nov-12-12-00)
Checked fix with CWs portlaoisefilterteam16.
Verified. Fix will be implemented in OO 2.0.
Checked integration with 680m30.