Bug 117692 - Frame at top of page moves into header with wrong padding when reloading exported DOCX
Summary: Frame at top of page moves into header with wrong padding when reloading expo...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: filters and storage (show other bugs)
Version:
(earliest affected)
4.3.0.4 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, filter:docx
Depends on:
Blocks: DOCX-Textbox WPS-Support
  Show dependency treegraph
 
Reported: 2018-05-18 12:37 UTC by Aron Budea
Modified: 2019-04-29 10:28 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
Sample ODT (8.98 KB, application/vnd.oasis.opendocument.text)
2018-05-18 12:37 UTC, Aron Budea
Details
Sample DOCX (saved from ODT with LO 6.1 alpha1) (4.77 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2018-05-18 12:38 UTC, Aron Budea
Details
Screenshot of DOCX in Writer (71.24 KB, image/png)
2018-05-18 12:39 UTC, Aron Budea
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Aron Budea 2018-05-18 12:37:19 UTC
Created attachment 142188 [details]
Sample ODT

- Add a frame to an empty document via Insert -> Frame -> Frame...
- Save as DOCX and reload.

=> Frame is moved into header, and its padding becomes shifted (it also becomes a drawing object instead of a text frame, I guess that is related to export/import conversion).

My guess is that it is an issue during import, as the exported DOCX shows fine in Word, but if the DOCX is opened (badly)/saved in Writer, the result still shows fine in Word, so it's hard to say.

Attaching an ODT, an exported DOCX and a screenshot.

Observed using LO 6.1 alpha1 & 4.4.0.3 / Windows 7.
In 4.3.0.4 the frame ends up in the header, but the padding is fine.
In 4.2.0.4 the frame stays inside the page area.
Comment 1 Aron Budea 2018-05-18 12:38:00 UTC
Created attachment 142189 [details]
Sample DOCX (saved from ODT with LO 6.1 alpha1)
Comment 2 Aron Budea 2018-05-18 12:39:40 UTC
Created attachment 142190 [details]
Screenshot of DOCX in Writer
Comment 3 Aron Budea 2018-05-18 12:46:52 UTC
Bibisected the first issue to the following commit using repo bibisect-43max, and the DOCX saved in a recent LO version (saving the file in DOCX was crashing in nearby commits).

https://cgit.freedesktop.org/libreoffice/core/commit/?id=57450afb768c085df0ba2344aa94b5f843060178
author		Miklos Vajna <vmiklos@collabora.co.uk>	2013-12-03 11:59:42 +0100
committer	Miklos Vajna <vmiklos@collabora.co.uk>	2013-12-03 15:39:04 +0100

"DOCX import: declare wps as a supported feature"


Bibisected the second issue to the following commit using repo bibisect-44max, and the DOCX saved in a recent LO version.

https://cgit.freedesktop.org/libreoffice/core/commit/?id=d379d18666aa42031359ca8eb34b0021960347ae
author		Miklos Vajna <vmiklos@collabora.co.uk>	2014-06-18 11:57:31 +0200
committer	Miklos Vajna <vmiklos@collabora.co.uk>	2014-06-18 12:09:15 +0200

"oox: import WPS shape with text as shape with textbox"

Technically these are probably rather implementation errors rather than regressions. Adding Cc: to Miklos Vajna, please take a look sometimes.
Comment 4 Jackey Jhon 2018-06-08 16:50:52 UTC Comment hidden (spam)
Comment 5 Jackey Jhon 2018-06-08 16:58:43 UTC Comment hidden (spam)
Comment 6 Xisco Faulí 2018-07-09 15:47:20 UTC
Moving to new as this has been bisected!
Comment 7 Xisco Faulí 2018-07-09 15:50:20 UTC Comment hidden (obsolete)
Comment 8 Xisco Faulí 2018-07-09 15:53:44 UTC
> https://cgit.freedesktop.org/libreoffice/core/commit/
> ?id=d379d18666aa42031359ca8eb34b0021960347ae
> author		Miklos Vajna <vmiklos@collabora.co.uk>	2014-06-18 11:57:31 +0200
> committer	Miklos Vajna <vmiklos@collabora.co.uk>	2014-06-18 12:09:15 +0200

bug 109077, bug 109137 and bug 107428 are also affected by this commit
Comment 9 Jack Smith 2018-07-31 19:51:06 UTC Comment hidden (spam)
Comment 10 roger chase 2018-08-02 06:39:24 UTC Comment hidden (spam)
Comment 11 roger chase 2018-09-05 06:13:43 UTC Comment hidden (spam)
Comment 12 jameswill 2019-04-27 15:32:09 UTC Comment hidden (spam)