Bug 43170 - compatibility with MS Word: width of the last column in the tables that have borderlines increases
Summary: compatibility with MS Word: width of the last column in the tables that have ...
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
3.4.4 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:doc
Depends on:
Blocks: DOC-Tables
  Show dependency treegraph
 
Reported: 2011-11-22 10:06 UTC by rpr
Modified: 2021-10-14 14:42 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
test files (10.07 KB, application/zip)
2011-11-22 10:06 UTC, rpr
Details
test files (15.89 KB, application/zip)
2019-09-28 10:18 UTC, rpr
Details

Note You need to log in before you can comment on or make changes to this bug.
Description rpr 2011-11-22 10:06:00 UTC
Created attachment 53779 [details]
test files

I've noticed a compatibility issue between LibreOffice Writer and
MS Word regarding the column width in tables with borderlines > 0.

Steps to reproduce:

(1) tables1.doc in the attachment was created with MS Word. It
contains two simple tables:
- Table 1 has 2 columns, each 8 cm wide and borderlines of 0.25 pt.
- Table 2 has 2 columns, each 8 cm wide and no borderlines.
Tables are centered on the page (between the page margins).

(2) Open tables1.doc in Writer and check the table properties:
- Table 1 - columns are 8 cm and 8.01 cm wide
- Table 2 - both columns are 8 cm wide
Save the document as tables2.doc.

(3) Open tables2.doc in MS Word and check the table properties:
- Table 1 - columns are 8 cm and 8.01 cm wide
- Table 2 - both columns are 8 cm wide
Tables are not centered on the page but aligned to the left page margin.
Save the document as tables3.doc.

(4) Open tables3.doc in Writer and check the table properties:
- Table 1 - columns are 8 cm and 8.02 cm wide
- Table 2 - both columns are 8 cm wide
Tables are not centered on the page but aligned to the left page margin.
Save the document as tables4.doc.

You can go on with these steps. The result is that if a user of MS
Word exchanges a DOC file with a user of LibO Writer, the width of the
last column in the tables that have borderlines will slightly increase
in each round. After many versions the increase may build up. I
experienced this and can say it is annoying if you have many tables in
the document.

The problem does not exist if the DOCX format.

The test environment:
- LibreOffice Writer 3.4.4 on an Ubuntu 11.10 or MS Windows XP Pro. SP3
- MS Word 2003 SP3 on a MS Windows XP Pro. SP3, all additional MS
  updates installed (DOCX tested using MS Office Compatibility Pack SP3)
Comment 1 rpr 2012-01-21 07:24:35 UTC
The issue still exists in LibreOffice Writer 3.4.5 and 3.5.0beta3 (tested on MS Windows XP Pro. SP3).
Comment 2 sasha.libreoffice 2012-02-10 05:58:36 UTC
reproduced in 3.5.0 rc 3
last column increases when opening doc file (fileopen problem)
centering of table is lost when saving to doc (filesave problem)
Comment 3 sasha.libreoffice 2012-03-16 04:52:10 UTC
Similar problem with changing size:
Bug 45536 - Writer FILEOPEN: opening file causes pictures to change size in .doc file (increase by 0.5 mm)
Comment 4 Michael Stahl (allotropia) 2012-05-23 13:28:38 UTC
can reproduce the growing column width on LO 3.5.4, OOo 3.4beta, OOo 3.3,
while OOo 3.0.1 cannot round-trip the table; doesn't look like a regression.
Comment 5 Teo91 2013-09-30 12:28:56 UTC
I can confirm this with LO 4.1.1 on Windows 7 SP1.
Comment 6 QA Administrators 2015-04-01 14:42:52 UTC Comment hidden (obsolete)
Comment 7 Buovjaga 2015-04-24 17:54:01 UTC
Reproduced starting from tables1.doc, checked with MS Word viewer that the tables were not centered.

Win 7 Pro 64-bit Version: 5.0.0.0.alpha1+ (x64)
Build ID: f3375fa07f27bd2ade519af3c07d69040d10eaa9
TinderBox: Win-x86_64@42, Branch:master, Time: 2015-04-22_23:38:50
Locale: fi_FI
Comment 8 rpr 2015-04-25 16:39:17 UTC
I can reproduce this issue in LO 4.4.2.2.
Comment 9 QA Administrators 2016-09-20 09:34:00 UTC Comment hidden (obsolete)
Comment 10 rpr 2016-09-21 11:47:59 UTC
I can confirm that this issue is still present on LO 5.2.1.2.
Comment 11 rpr 2016-11-25 12:47:56 UTC
I still see this issue in LO 5.3.0Beta1 - tested on MS Windows 10 Pro.
Comment 12 Roman Kuznetsov 2018-09-10 21:15:12 UTC
in

Версия: 6.1.1.1 (x64)
ID сборки: 2718b4a18dfcc6a54ebe5f7b801ee7a47fa81e0c
Потоков ЦП: 4; ОС:Windows 10.0; Отрисовка ИП: GL; 
Локаль: ru-RU (ru_RU); Calc: CL

there isn't lost of alignment, table always on center
But wide of right column in first table increases by 0,01 cm after every save-reopen in DOC format.
Comment 13 QA Administrators 2019-09-11 04:38:43 UTC Comment hidden (obsolete)
Comment 14 rpr 2019-09-28 10:16:50 UTC
I confirm  that this issue also exists in LibreOffice 6.3.1.2 although the table alignment is preserved after saving the document in Writer.

Here are revised steps to reproduce the issue:

(1) tables1.doc in the attachment was created with MS Word. It
contains two simple tables:
- Table 1 has 2 columns, each 8 cm wide and borderlines of 0.25 pt.
- Table 2 has 2 columns, each 8 cm wide and no borderlines.

(2) Open tables1.doc in Writer and check the table properties:
- Table 1 - columns are 8 cm and 8.01 cm wide
- Table 2 - both columns are 8 cm wide
Save the document as tables2.doc.

(3) Open tables2.doc in MS Word and check the table properties:
- Table 1 - columns are 8 cm and 8.01 cm wide
- Table 2 - both columns are 8 cm wide
Save the document as tables3.doc.

(4) Open tables3.doc in Writer and check the table properties:
- Table 1 - columns are 8 cm and 8.02 cm wide
- Table 2 - both columns are 8 cm wide
Save the document as tables4.doc.

I am also attaching new test files where tables1.doc was created with a newer version of MS Word. The DOC files do not contain macros although Writer gives a warning about it (this is probably another bug in Writer).
Comment 15 rpr 2019-09-28 10:18:39 UTC
Created attachment 154615 [details]
test files
Comment 16 QA Administrators 2021-09-28 05:16:54 UTC Comment hidden (obsolete)
Comment 17 rpr 2021-10-14 14:41:28 UTC
Testing the bug in LibreOffice 7.2.2.2 on Windows shows that it has been fixed.