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)
Header and Footer cause a mess.
Proper display of RTF
User Profile Reset: No
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:
Thomas Beck committed a patch related to this issue.
It has been pushed to "master":
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:
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
could you please provide the original file to see if the bug is still reproducible or not? I see only screenshots here.