Description: When opening certain RTF Documents (can't attach because they are from a customer) that includes a Header and/or Footer it can happen that the Header/Footer will be randomly inserted into the Textbody (1-x times, depending on RTF) or the content will be inserted multiple times into the Header/Footer. This also caused large LibreOffice to freeze on loading a large RTF document (74 Pages) Steps to Reproduce: 1.Open RTF Document recieved from our Customer (see Attached Screenshot) 2. 3. Actual Results: Header and Footer cause a mess. Expected Results: Proper display of RTF Reproducible: Always User Profile Reset: No Additional Info: User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36
Created attachment 133509 [details] Opened in Libreoffice 5.4
Created attachment 133510 [details] How it should look
Created attachment 133511 [details] Document displayed with the proposed patch I submitted a patch for review. The resulting Document with the Patch can be seen on the Screenshot. For the Patch see here: https://gerrit.libreoffice.org/#/c/37814/
Thomas Beck committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=8a71a2a843c31e5eeb5ae4b08ee861ba8f2c4516 tdf#108055 RTF: Header and Footer are added multiple times. It will be available in 6.0.0. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Polite ping: is this bug fixed? if so, please close it as RESOLVED FIXED
@Thomas Beck could you please provide the original file to see if the bug is still reproducible or not? I see only screenshots here.