Created attachment 143470 [details]
The original file saved in ODF format.
If an image anchored as character is the last character in a non-first paragraph before a page break with page style change, the image becomes the first character on the next page after saving the document as DOCX and reopening it. This can also cause to separate the header text from its corresponding numbering.
Steps to reproduce:
1. Create a new document in LibreOffice Writer.
2. Type in some random text in a paragraph, and press Enter to create a new paragraph (this is mandatory to reproduce the bug).
3. Insert an image in the second paragraph, and anchor it as character.
4. Click on Insert – Manual Break, select Page break and a new style. Leaving the Style on the [none] option won't trigger the bug, but even Default style will do in this case.
5. Type some random text on the second page. If you turn on numbering for this line, you will see how the image will separate the text from its corresponding numbering (it doesn't even have to be header style paragraph).
6. Save the document as DOCX, and reload it.
The image that was originally the last character on a page moves to the next page to become the first character.
The image should stay where it originally was.
Build ID: bb1d5780226bb1b9156580972eea9aa849178742
CPU threads: 1; OS: Windows 6.1; UI render: default;
TinderBox: Win-x86@42, Branch:master, Time: 2018-07-03_05:56:48
Locale: hu-HU (hu_HU); Calc: group threaded
Created attachment 143471 [details]
The OOXML export to demonstrate the bug.
Created attachment 143472 [details]
A screenshot showing the ODF and OOXML version of the same document.
This was found by a member of my team.
Also reproduced in
Build ID: 3ca42d8d51174010d5e8a32b96e9b4c0b3730a53
Threads 4; Ver: 4.10; Render: default;
Build ID: c15927f20d4727c3b8de68497b6949e72f9e6e9e
Version 188.8.131.52.alpha0+ (Build ID: efca6f15609322f62a35619619a6d5fe5c9bd5a)
Dear Gabor Kelemen,
To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year.
There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present.
If you have time, please do the following:
Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/
If the bug is present, please leave a comment that includes the information from Help - About LibreOffice.
If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice.
Please DO NOT
Update the version field
Reply via email (please reply directly on the bug tracker)
Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not
appropriate in this case)
If you want to do more to help you can test to see if your issue is a REGRESSION. To do so:
1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from http://downloadarchive.documentfoundation.org/libreoffice/old/
2. Test your bug
3. Leave a comment with your results.
4a. If the bug was present with 3.3 - set version to 'inherited from OOo';
4b. If the bug was not present in 3.3 - add 'regression' to keyword
Feel free to come ask questions or to say hello in our QA chat: https://kiwiirc.com/nextclient/irc.freenode.net/#libreoffice-qa
Thank you for helping us make LibreOffice even better for everyone!
Created attachment 157935 [details]
I don' t think this is an export problem: rather an import see this attachment. Like in Bug 112342 after export the image and the newpage symbol in the same line without a space/enter so on opening the same happens like in Bug 112342, the image and the the newpage position changes place with each other. If I place an enter an split the newline and image parts of the line it will be fine.
Bakos Attila committed a patch related to this issue.
It has been pushed to "master":
tdf#118701 DOCX import: fix image position on page break
It will be available in 7.1.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:
Affected users are encouraged to test the fix and report feedback.
*** Bug 95372 has been marked as a duplicate of this bug. ***