The attached DOC file, created in Word 2013 contains a Text Form Field (Legacy Form). Copy the line of text, and paste it as a second line. Save and reopen the document. => The pasted field shows multiple of text "FORMTEXT" over it. I'm not sure what this kind of field corresponds to in LibreOffice, in Word the field has a bunch of properties (none of them have been set or changed in Word). Observed with LO 6.0 daily build (2017-09-22_22:54:52, 0db08432c69adc36ed464c1f7c8e672acb3752d) & 5.3.0.3 / Windows 7. Not reproducible with LO 5.2.0.4. => regression
Bibisected to the commit referenced below using repo bibisect-win32-5.3. Adding Cc: to Michael Stahl, please take a look sometimes. https://cgit.freedesktop.org/libreoffice/core/commit/?id=bb069fe7b8b6a24f9ff4df4c7052961e17ea3a8c author Michael Stahl <mstahl@redhat.com> 2016-09-28 08:41:07 (GMT) committer Michael Stahl <mstahl@redhat.com> 2016-09-28 09:04:19 (GMT) "sw: remove defensive programming bullshit in lcl_AssureFieldMarksSet"
"The attached DOC file" - isn't, currently.
Created attachment 136564 [details] Sample DOC with form field My bad, forgot to attach it, here it is now.
By the way, interestingly there's no issue with a similar DOCX file, so it only seems to affect DOCs.
fixed on master
Michael Stahl committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=421a23bb36bbf51edfabc58b7d2cd28ad37719d0 tdf#112679 sw: fix copying of fieldmarks 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.
Verified with daily build from 09-28, thanks for the fix, Michael!
Michael Stahl committed a patch related to this issue. It has been pushed to "libreoffice-5-4": http://cgit.freedesktop.org/libreoffice/core/commit/?id=10fe1a4b7b408ce8322d65c6e0701e67e4d0f25b&h=libreoffice-5-4 tdf#112679 sw: fix copying of fieldmarks It will be available in 5.4.3. 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.
Michael Stahl committed a patch related to this issue. It has been pushed to "libreoffice-5-3": http://cgit.freedesktop.org/libreoffice/core/commit/?id=fb741b48a4d11c1f91702a73ef600c7df976a298&h=libreoffice-5-3 tdf#112679 sw: fix copying of fieldmarks It will be available in 5.3.7. 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.