Bug 146984 - Lost page break: Image in frame jump to second page on DOCX export (fine with DOC)
Summary: Lost page break: Image in frame jump to second page on DOCX export (fine with...
Status: REOPENED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:docx
: 147360 (view as bug list)
Depends on:
Blocks: DOCX-Page
  Show dependency treegraph
 
Reported: 2022-01-25 13:38 UTC by Telesto
Modified: 2023-10-05 19:35 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
Example file (337.19 KB, application/vnd.oasis.opendocument.text)
2022-01-25 13:38 UTC, Telesto
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Telesto 2022-01-25 13:38:15 UTC
Description:
Image in frame jump to second page on DOCX export (fine with DOC)

Steps to Reproduce:
1. Open the attached file
2. Save as DOCX
3. File reload

Actual Results:
First page empty

Expected Results:
Same as ODT


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 7.4.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 4a388f5e01ebb5a512931d11e48c4380382239c8
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win
Locale: nl-NL (nl_NL); UI: en-US
Calc: CL
Comment 1 Telesto 2022-01-25 13:38:37 UTC
Created attachment 177773 [details]
Example file
Comment 2 Ezinne 2022-02-01 07:42:46 UTC
Reproducible in:

Version: 7.4.0.0.alpha0+ / LibreOffice Community
Build ID: 34412339f863b35508842a3bf20fcc7341a006e7
CPU threads: 8; OS: Linux 5.11; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded
Comment 3 Ezinne 2022-02-01 07:44:13 UTC
I got these error lines on the terminal when the file got reloaded:

warn:sw.core:382049:382049:sw/source/core/doc/textboxhelper.cxx:1411: SwTextBoxHelper::syncProperty: Repositioning failed!
warn:sw.core:382049:382049:sw/source/core/doc/textboxhelper.cxx:1179: SwTextBoxHelper::syncFlyFrameAttr: The anchor of the shape different from the textframe!
warn:sw.core:382049:382049:sw/source/core/doc/textboxhelper.cxx:1411: SwTextBoxHelper::syncProperty: Repositioning failed!
warn:sw.core:382049:382049:sw/source/core/doc/textboxhelper.cxx:1411: SwTextBoxHelper::syncProperty: Repositioning failed!
warn:sw.core:382049:382049:sw/source/core/doc/textboxhelper.cxx:1411: SwTextBoxHelper::syncProperty: Repositioning failed!
warn:sw.core:382049:382049:sw/source/core/doc/textboxhelper.cxx:1411: SwTextBoxHelper::syncProperty: Repositioning failed!
Comment 4 Timur 2022-02-07 12:43:21 UTC

*** This bug has been marked as a duplicate of bug 135581 ***
Comment 5 Timur 2022-02-07 12:43:49 UTC
"To paragraph" changed "to char".
Comment 6 Justin L 2023-03-15 01:38:52 UTC
In 7.6+, everything has jumped to the first page.
The export is fine, since it opens nicely in MS Word.

The problem is a missing page break.
Comment 7 Commit Notification 2023-03-15 01:39:32 UTC
Justin Luth committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/828fde37632a5bb0542b6925454690a5287d6490

tdf#153613 tdf#146984 writerfilter: split para after anchors

It will be available in 7.6.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 8 Commit Notification 2023-03-15 13:55:26 UTC
Justin Luth committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/949b2bbbaaa9bd21b6882dab49ea2018a08d2362

tdf#146984 writerfilter inline_inline: no break in shape

It will be available in 7.6.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 Justin L 2023-03-16 13:22:05 UTC
*** Bug 147360 has been marked as a duplicate of this bug. ***
Comment 10 BogdanB 2023-03-23 18:29:28 UTC
Justin, thanks for fixing this

Verified with
Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: f92721bf182952be88b0349a17e46b684d630c29
CPU threads: 16; OS: Linux 5.19; UI render: default; VCL: gtk3
Locale: ro-RO (ro_RO.UTF-8); UI: en-US
Calc: threaded
Comment 11 Commit Notification 2023-10-05 14:26:53 UTC
Justin Luth committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/32102e559eed6eadf2ea146e212a330a3bc897ca

tdf#157574 Revert "tdf#153613 tdf#146984 split para after anchors"

It will be available in 24.2.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 12 Commit Notification 2023-10-05 19:17:25 UTC
Justin Luth committed a patch related to this issue.
It has been pushed to "libreoffice-7-6":

https://git.libreoffice.org/core/commit/06702d8474bdac71fa2a61723ea476e888fc91d6

tdf#157574 Revert "tdf#153613 tdf#146984 split para after anchors"

It will be available in 7.6.3.

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.