Description: After closing the file, all OLE objects located under collapsed headers disappear. Also, CONTENTS incorrectly displays page numbers if the headers are collapsed. Steps to Reproduce: 1. Create a header in libreoffice writer. 2. Create an OLE object (in my case, a formula). 3. Fold the header. 4. Save and close the file. 5. When you open the saved file, the OLE object will disappear. Actual Results: Formulas disappear Expected Results: Save all OLE objects Reproducible: Always User Profile Reset: No Additional Info: Version: 25.8.3.2 (X86_64) / LibreOffice Community Build ID: 580(Build:2) CPU threads: 8; OS: Linux 6.17; UI render: default; VCL: gtk3 Locale: uk-UA (uk_UA.UTF-8); UI: uk-UA 25.8.3-3 Calc: threaded
Created attachment 204623 [details] Example
I confirm it with Version: 25.8.3.2 (X86_64) Build ID: 8ca8d55c161d602844f5428fa4b58097424e324e CPU threads: 12; OS: Windows 11 X86_64 (build 26200); UI render: Skia/Vulkan; VCL: win Locale: de-DE (de_DE); UI: de-DE Calc: CL threaded and with Version: 26.8.0.0.alpha0+ (X86_64) Build ID: 680(Build:0) CPU threads: 12; OS: Windows 11 X86_64 (build 26200); UI render: Skia/Raster; VCL: win Locale: de-DE (de_DE); UI: en-GB Calc: CL threaded Steps: 1. Make sure, that outline folding is active 2. Type a heading and a formula 3. Toggle Outline 4. Save as docx 5. Close and reopen Expected result: Formula visible Actual result Formula has been removed from the document Additional information Haven't tested with other OLE-Objects
Proposed patch: https://gerrit.libreoffice.org/c/core/+/196516
Jim Raykowski committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/9cdb58822849805ca939e1079b01262e75a96bf2 tdf#169964 Fix folded OLE objects are not saved in docx It will be available in 26.8.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.
Jim Raykowski committed a patch related to this issue. It has been pushed to "libreoffice-26-2": https://git.libreoffice.org/core/commit/d6fe9aedf82c818a158056d6c0889ff2a8763c29 tdf#169964 Fix folded OLE objects are not saved in docx It will be available in 26.2.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.
VERIFIED with Version: 26.8.0.0.alpha0+ (X86_64) Build ID: 680(Build:0) CPU threads: 12; OS: Windows 11 X86_64 (build 26200); UI render: Skia/Raster; VCL: win Locale: de-DE (de_DE); UI: en-GB Calc: CL threaded Jim, thank you for fixing it!