Bug 139754

Summary: FILEOPEN ODT->DOCX: missing border padding and some border line problems (see comment 4)
Product: LibreOffice Reporter: Telesto <telesto>
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: NEW ---    
Severity: normal CC: bakos.attilakaroly, libreoffice
Priority: medium    
Version: unspecified   
Hardware: All   
OS: All   
See Also: https://bugs.documentfoundation.org/show_bug.cgi?id=137802
https://bugs.documentfoundation.org/show_bug.cgi?id=139092
https://bugs.documentfoundation.org/show_bug.cgi?id=136516
https://bugs.documentfoundation.org/show_bug.cgi?id=142847
https://bugs.documentfoundation.org/show_bug.cgi?id=93975
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 88173, 104449    
Attachments: The original document and its docx version in LO 7.2alpha
The original document in 7.0 and current master
Wrap spacing settings in the original document and its docx version

Description Telesto 2021-01-18 19:54:19 UTC
Description:
Empty frames on file open (DOCX)

Steps to Reproduce:
1. Open attachment 127476 [details]
2. Save as DOCX
3. File reload

-> its a file open issue.. File opens fine with older versions

Actual Results:
Empty frames (4 at the left side)

Expected Results:
No empty frames


Reproducible: Always


User Profile Reset: No



Additional Info:
Found in
Version: 7.2.0.0.alpha0+ (x64)
Build ID: f2171af6ce3516598d9f8bac8294025a21a5b1a2
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win
Locale: en-US (nl_NL); UI: en-US
Calc: CL

and in
Version: 7.1.0.0.beta1+ (x64)
Build ID: f9fab4203c1aa0b9a3f27ce2713b6d5addc7df19
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win
Locale: nl-NL (nl_NL); UI: nl-NL
Calc: CL

not in
7.0
Comment 1 NISZ LibreOffice Team 2021-01-19 15:57:14 UTC
Created attachment 169022 [details]
The original document and its docx version in LO 7.2alpha

Happens in:

Version: 7.2.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 2081eac430ac69619149e44b453a2d7dda41fc83
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win
Locale: en-US (hu_HU); UI: en-US
Calc: CL
Comment 2 NISZ LibreOffice Team 2021-01-19 16:44:16 UTC
Seems to have started with:

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

author	Attila Bakos (NISZ) <bakos.attilakaroly@nisz.hu>	2020-10-30 13:28:02 +0100
committer	László Németh <nemeth@numbertext.org>	2020-11-17 16:02:09 +0100

tdf#137802 tdf#84691 sw: sync anchoring of textbox with UNO

Adding CC to: Attila Bakos
Comment 3 NISZ LibreOffice Team 2021-02-02 10:58:15 UTC
*** Bug 140081 has been marked as a duplicate of this bug. ***
Comment 4 NISZ LibreOffice Team 2021-02-08 07:12:53 UTC
Created attachment 169569 [details]
The original document in 7.0 and current master

Seems to have gotten better in:

Version: 7.2.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 3ed9bba283a6a67864c0928186e277240be0d9ba
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win
Locale: en-US (hu_HU); UI: en-GB
Calc: CL

Likely thanks to bug #136516

Some things are still problematic:
- border lines are not drawn correctly, but whats's visible depends on the zoom level
- original documents frames have a 0.15 cm padding on all 4 of the borders, that seems to be lost.
Comment 5 Attila Bakos (NISZ) 2021-02-16 10:29:14 UTC
My part -- the regression -- has been fixed ->Setting to unassigned.
Comment 6 Justin L 2021-03-26 16:20:23 UTC
removing regression info as per comment 5.
Comment 7 NISZ LibreOffice Team 2021-06-14 10:04:45 UTC
Created attachment 172864 [details]
Wrap spacing settings in the original document and its docx version

Looks like the original frames have a 0.20 cm wrap spacing which means the distance of text around them.

This setting is not exported to docx. Manually setting it restores the distance between them.

The earlier border padding idea was wrong, that is exported correctly (see Format - Textbox and shape - Text Attributes).
Comment 8 NISZ LibreOffice Team 2021-07-05 07:14:26 UTC
Looking more at it, these caption frames are anchored "As character". Such anchoring - in contrast to all others - does not allow wrap spacing to be applied in Word, only in Writer (UI is greyed out in Word).
Comment 9 Justin L 2023-06-08 15:55:12 UTC
repro 7.6