Bug 123610 - FILESAVE | DOCX, Text flips in MSO after saving in LO.
Summary: FILESAVE | DOCX, Text flips in MSO after saving in LO.
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.2 all versions
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: OOXML-Shapes
  Show dependency treegraph
 
Reported: 2019-02-21 08:50 UTC by NISZ LibreOffice Team
Modified: 2020-07-15 13:32 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
The original docx file (80.63 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2019-02-21 08:50 UTC, NISZ LibreOffice Team
Details
The saved file. (43.45 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2019-02-21 08:50 UTC, NISZ LibreOffice Team
Details
Screenshot of the original and the exported file side by side in Word. (260.38 KB, image/png)
2019-02-21 08:51 UTC, NISZ LibreOffice Team
Details
Screenshot of the original and exported documents side by side in Word (128.57 KB, image/png)
2020-07-15 13:17 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 2019-02-21 08:50:02 UTC
Description:
When the attached original docx gets saved in LO the text in one of the boxes gets flipped.


Steps to Reproduce:
    1. Open the original docx in LO.
    2. Save it as docx.
    3. Open the saved file in MSO
    4. Notice the changes.

Actual Results:
One of the boxes has its text flipped.

Expected Results:
The text should stay as it was before.


Reproducible: Always


User Profile Reset: No



Additional Info:
Comment 1 NISZ LibreOffice Team 2019-02-21 08:50:38 UTC
Created attachment 149449 [details]
The original docx file
Comment 2 NISZ LibreOffice Team 2019-02-21 08:50:55 UTC
Created attachment 149450 [details]
The saved file.
Comment 3 NISZ LibreOffice Team 2019-02-21 08:51:09 UTC
Created attachment 149451 [details]
Screenshot of the original and the exported file side by side in Word.
Comment 4 Durgapriyanka 2019-02-22 18:46:22 UTC
Thank you for reporting the bug. I can see that the none of the text boxes nor the text appears after save and open. Only the arrows are visible in MSO after save open.

Version: 6.3.0.0.alpha0+
Build ID: b6b28931435e44aca92b8c0e1659f701e3ed1a87
CPU threads: 2; OS: Windows 6.1; UI render: default; VCL: win; 
TinderBox: Win-x86@42, Branch:master, Time: 2019-01-30_06:57:04
Locale: en-US (en_US); UI-Language: en-US
Calc: threaded
Comment 5 Dieter 2019-02-28 08:13:11 UTC
I confirm your description with

Version: 6.3.0.0.alpha0+ (x64)
Build ID: f42554a1886ebe49170c25096dc3281b2c7bb1f4
CPU threads: 4; OS: Windows 10.0; UI render: default; VCL: win; 
TinderBox: Win-x86_64@42, Branch:master, Time: 2019-02-08_22:37:30
Locale: en-US (de_DE); UI-Language: en-US
Calc: threaded
Comment 6 Xisco Faulí 2019-03-25 14:37:08 UTC
Also reproduced in

Version: 4.4.0.0.alpha0+
Build ID: 78766aaa12ae4fae9dd2f3274617ba41de57eefd

but not in

Version: 4.1.0.0.alpha1+
Build ID: a2c9d4f8bbde97f175bae4df771273a61251f40
Comment 7 Gabor Kelemen 2019-05-30 14:46:05 UTC
(In reply to Xisco Faulí from comment #6)
> Also reproduced in
> 
> Version: 4.4.0.0.alpha0+
> Build ID: 78766aaa12ae4fae9dd2f3274617ba41de57eefd
> 
> but not in
> 
> Version: 4.1.0.0.alpha1+
> Build ID: a2c9d4f8bbde97f175bae4df771273a61251f40

Does not happen in the new bibisect-win32-4.3 repos latest version either. I'll try the 4.4 bibisect repo later.
Comment 8 Gabor Kelemen 2019-05-31 10:50:58 UTC
With bibisect-win32-4.4 I could bibisect to this commit:

https://cgit.freedesktop.org/libreoffice/core/commit/?id=18898e13fda25fe6dc85318dd0711355c7b2cc26

    Author:     Matúš Kukan <matus.kukan@collabora.com>

    Commit:     Matúš Kukan <matus.kukan@collabora.com>

        bnc#897769: OOXML import: Import border lines using reference too.

        Do not ignore 'lnRef' element.

        Also fix typo to apply 'seCell' properties to the right cell (southeast).
Comment 9 NISZ LibreOffice Team 2020-07-15 13:17:43 UTC
Created attachment 163065 [details]
Screenshot of the original and exported documents side by side in Word

Taking a closer look at this file I see there is a checkbox in Word -> Format Shape -> Shape Settings -> Textbox -> Avoid rotating item

This is checked in the original because the shape is 180 degrees rotated, but after saving and reopening in Word the box is cleared.

Writer has no such option in Format - Text box and shape -> Text Attributes dialog.

This looks like something we should interopgrabbag at least.
Comment 10 NISZ LibreOffice Team 2020-07-15 13:21:18 UTC
Also earlier bisection must be wrong, in 4.3 the shapes were imported as frames and this particular shape was exported without the original 180 degrees rotation - which coincides with what the user wanted, but now we try to roundtrip what they actually did :).
Comment 11 NISZ LibreOffice Team 2020-07-15 13:32:00 UTC
Removing regression keywords.