Bug 121669 - FILSAVE DOCX The first column becomes wider after exported when the text formatted as three columns
Summary: FILSAVE DOCX The first column becomes wider after exported when the text form...
Status: VERIFIED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.0.0.3 release
Hardware: All All
: medium normal
Assignee: Justin L
URL:
Whiteboard: target:7.2.0 target:7.1.1
Keywords: bibisected, filter:docx, regression
Depends on:
Blocks: Page-Layout-Columns
  Show dependency treegraph
 
Reported: 2018-11-23 10:36 UTC by NISZ LibreOffice Team
Modified: 2021-02-08 11:37 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
Screenshot of the original document side by side in Word and Writer. (249.02 KB, image/png)
2018-11-23 10:36 UTC, NISZ LibreOffice Team
Details
Example file from Word (19.75 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2018-11-23 10:37 UTC, NISZ LibreOffice Team
Details
The original file saved by Writer (16.64 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2018-11-23 10:37 UTC, NISZ LibreOffice Team
Details

Note You need to log in before you can comment on or make changes to this bug.
Description NISZ LibreOffice Team 2018-11-23 10:36:23 UTC
Description:
The first column in DOCX documents created with Microsoft Word 2010 becomes wider after exported in LibreOffice Writer when the text formatted as three columns.

Steps to Reproduce:
    1. Create a new document in Microsoft Word.
    2. On the Page Layout tab, in the Page Setup group, click Columns.
    3. Select Three.
    4. Type “=lorem(1)” and press Enter.
    5. Save the file as DOCX.
    6. Open the same file in LibreOffice Writer.
    7. Select File and Save As.
    8. Name the file.
    9. Reload the file.
    10. Compare the original file opened in Writer and the exported file opened in Writer.

Actual Results:
The first column becomes wider when the document is exported in LibreOffice Writer.

Expected Results:
Column should have the same width as the original file when the document is opened in Microsoft Word 2010.


Reproducible: Always


User Profile Reset: No



Additional Info:
Comment 1 NISZ LibreOffice Team 2018-11-23 10:36:42 UTC
Created attachment 146971 [details]
Screenshot of the original document side by side in Word and Writer.
Comment 2 NISZ LibreOffice Team 2018-11-23 10:37:12 UTC
Created attachment 146972 [details]
Example file from Word
Comment 3 NISZ LibreOffice Team 2018-11-23 10:37:28 UTC
Created attachment 146973 [details]
The original file saved by Writer
Comment 4 Durgapriyanka 2018-11-26 18:25:04 UTC
I can reproduce it in

Version: 6.0.6.2
Build ID: 0c292870b25a325b5ed35f6b45599d2ea4458e77
CPU threads: 2; OS: Windows 6.1; UI render: default; 
Locale: en-US (en_US); Calc: group
Comment 5 Durgapriyanka 2018-11-26 18:25:59 UTC
I can reproduce it in 

Microsoft Word 2007

Version: 6.0.6.2
Build ID: 0c292870b25a325b5ed35f6b45599d2ea4458e77
CPU threads: 2; OS: Windows 6.1; UI render: default; 
Locale: en-US (en_US); Calc: group
Comment 6 Dieter 2018-11-26 19:40:04 UTC
(In reply to Durgapriyanka from comment #4)
> I can reproduce it in
> 
> Version: 6.0.6.2
> Build ID: 0c292870b25a325b5ed35f6b45599d2ea4458e77
> CPU threads: 2; OS: Windows 6.1; UI render: default; 
> Locale: en-US (en_US); Calc: group

Set to NEW, because of comment 4
Comment 7 Xisco Faulí 2018-12-12 18:42:16 UTC
Also reproduced in

Version: 4.3.0.0.alpha1+
Build ID: c15927f20d4727c3b8de68497b6949e72f9e6e9e
Comment 8 Buovjaga 2019-01-25 13:09:27 UTC
Bibisected on Linux 43all to https://gerrit.libreoffice.org/plugins/gitiles/core/+log/6aeeca56daa9065f607cc7056e7d86d237c84a99..5695aea3bbe719881177b35c805920bee608751b

The only thing dealing with Writer columns is https://gerrit.libreoffice.org/plugins/gitiles/core/+/de1c42d9f552bc57b28d50f4313bc982c63b84d4%5E%21/

writer:crash(i118878) when adding columns and chang. properties in a frame

I did not try reverting it / looking at the current state. However, I found that another bug blamed the same commit: https://bugs.documentfoundation.org/show_bug.cgi?id=53525#c2
Comment 9 Justin L 2021-01-21 11:02:29 UTC
(In reply to Buovjaga from comment #8)
> The only thing dealing with Writer columns is
> https://gerrit.libreoffice.org/plugins/gitiles/core/+/
> de1c42d9f552bc57b28d50f4313bc982c63b84d4%5E%21/

That commit was reverted in 4.0 by author Michael Meeks on 2012-12-17 21:24:39 
with commit 70ba2b40541adcea848ad40b19674d62e9cbbc37
    fdo#53525 - Revert "writer:crash(i118878) when adding
    columns and chang. properties in a frame"

    This reverts commit de1c42d9f552bc57b28d50f4313bc982c63b84d4.

The original document is auto-width columns. The round-trip is not longer autowidth. However, if you set it to autowidth, then the subsequent round-trips will remain autowidth. (All of this is also true for DOC and RTF - it is an export issue.)
Comment 10 Justin L 2021-01-21 14:10:11 UTC
proposed fix at http://gerrit.libreoffice.org/c/core/+/109762
Comment 11 Commit Notification 2021-01-22 13:41:51 UTC
Justin Luth committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/9e41002701285dc89a4dc8c91619a51071995172

tdf#121669 ww8 export: use the "we have equal columns" flag

It will be available in 7.2.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 12 Commit Notification 2021-01-25 16:29:20 UTC
Justin Luth committed a patch related to this issue.
It has been pushed to "libreoffice-7-1":

https://git.libreoffice.org/core/commit/fdb42d82d1240d3ba274f3f25a1072d0044d3c5c

tdf#121669 ww8 export: use the "we have equal columns" flag

It will be available in 7.1.1.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 13 NISZ LibreOffice Team 2021-02-08 11:37:38 UTC
Verified in
Version: 7.2.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 44b914b1e2616ca8f70e896e653a46ca93610234
CPU threads: 4; OS: Windows 10.0 Build 17134; UI render: Skia/Raster; VCL: win
Locale: hu-HU (hu_HU); UI: hu-HU
Calc: threaded