Description: If the imported document has a section at the end of the document, the section is removed on import. Steps to Reproduce: 1. Open Writer document 2. Open menu Insert -> Text from file 3. Choose file with section at the end of document Actual Results: No section imported from the document. Expected Results: Imported section exists in the document. Reproducible: Always User Profile Reset: Yes Additional Info: Version: 7.2.0.0.alpha0+ / LibreOffice Community Build ID: 8ae3ae4bf75fdd0aaa132c956d9da029baa3adc6 CPU threads: 8; OS: Linux 3.10; UI render: Skia/Vulkan; VCL: gtk3 Locale: en-GB (en_GB.utf8); UI: en-US TinderBox: Linux-rpm_deb-x86_64@86-TDF, Branch:master, Time: 2021-04-23_17:13:02 Calc: threaded
Please attach a sample document.
Created attachment 171833 [details] Sample document with text in section to insert text from
https://gerrit.libreoffice.org/c/core/+/115643
Georgy Litvinov committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/f5ac56c9f7f54bb6603f6f1e8dba06da20f7e0a4 Don't remove section at the end of inserted text tdf#142157 It will be available in 7.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.
Xisco Fauli committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/aa6e9cceddfb154c2207ab316cb7625655452953 tdf#142157: sw_uiwriter: Add unittest It will be available in 7.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.