Bug 135569 - FILEOPEN DOCX Inner margins are rotated with textbox
Summary: FILEOPEN DOCX Inner margins are rotated with textbox
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.4.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:docx
: 127438 (view as bug list)
Depends on:
Blocks: DOCX-Textbox
  Show dependency treegraph
 
Reported: 2020-08-09 07:23 UTC by raal
Modified: 2023-06-08 00:54 UTC (History)
6 users (show)

See Also:
Crash report or crash signature:


Attachments
test file (69.52 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2020-08-09 07:25 UTC, raal
Details
printscreen from office365 (19.82 KB, image/png)
2020-08-09 07:26 UTC, raal
Details
How it looks in LibreOffice 7.1 (11.68 KB, image/png)
2020-08-10 16:46 UTC, Xisco Faulí
Details
The example file opened in Word and current Writer (91.09 KB, image/png)
2020-09-09 12:04 UTC, NISZ LibreOffice Team
Details

Note You need to log in before you can comment on or make changes to this bug.
Description raal 2020-08-09 07:23:52 UTC
Description:
Docx file - rotated text imported badly

Steps to Reproduce:
1. open attached docx file
2.
3.

Actual Results:
rotated text in text box is not visible as in word

Expected Results:
like in word, see printcsreen


Reproducible: Always


User Profile Reset: No



Additional Info:
This started after the fix 
author	Miklos Vajna <vmiklos@collabora.com>	2019-04-25 21:05:43 +0200
committer	Miklos Vajna <vmiklos@collabora.com>	2019-04-26 09:05:04 +0200
commit ff17478e069cc82681df62514876c06365dd5cd6 (patch)
tree 172435a271013210b49c372ffa441e949e1a2b47
parent 647660cf844f265dd2ad7c78e6cb13844fbf3613 (diff)
sw btlr writing mode: implement DOCX shape import for tbrl

Before the fix the rotate property was ignored.
Comment 1 raal 2020-08-09 07:25:46 UTC
Created attachment 164060 [details]
test file
Comment 2 raal 2020-08-09 07:26:18 UTC
Created attachment 164061 [details]
printscreen from office365
Comment 3 Xisco Faulí 2020-08-10 16:45:45 UTC
Reproduced in

Version: 7.1.0.0.alpha0+
Build ID: 6ad2f463784a24c566477cdd60ae729651bb8564
CPU threads: 4; OS: Linux 4.19; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded
Comment 4 Xisco Faulí 2020-08-10 16:46:19 UTC
Created attachment 164122 [details]
How it looks in LibreOffice 7.1
Comment 5 NISZ LibreOffice Team 2020-09-09 12:04:07 UTC
Created attachment 165316 [details]
The example file opened in Word and current Writer

The problem is that both the shapes in Word have 1.91 cm top and bottom spacing set for the text box of the shape. This is correctly imported in Writer.

However in a rotated shape top and bottom mean different things in Word and Writer:
In Word top and bottom is the same as in a non-rotated shape.
In Writer top and bottom are rotated with the shape so they actually set left and right margins.
Manually setting these to 0 however does not change the layout (unlike in Word).
Comment 6 NISZ LibreOffice Team 2020-10-27 10:15:17 UTC
@Attila Thought you might be interested in this one
Comment 7 NISZ LibreOffice Team 2020-11-30 14:14:35 UTC
*** Bug 127438 has been marked as a duplicate of this bug. ***
Comment 8 Commit Notification 2022-08-22 14:50:32 UTC
Miklos Vajna committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/223a43537559efc96b4b5bca32d93211ed849ae5

crashtesting: fix DOCX export of tdf135569-1.docx

It will be available in 7.5.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 9 Commit Notification 2022-08-22 19:01:36 UTC
Miklos Vajna committed a patch related to this issue.
It has been pushed to "libreoffice-7-4":

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

crashtesting: fix DOCX export of tdf135569-1.docx

It will be available in 7.4.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.