Description: When I iterate through fields in document some of them are shown with incorrect format and changing it afterwards. Steps to Reproduce: 1. Open attached document 2. Double click 4th field (field with text "1") 3. Edit field dialog is opened with type="Chapter" and format="Chapter number without separator") - okay 4. Click on button with left arrow to iterate to previous field. Right now we are at 3rd field "Chapter 1 -Another title" - everything is okay also here 5. Once again click on button with left arrow. 6. On field #2 format is displayed incorrectly and if you will click again left arrow button this format will be applied to field changing its text. Actual Results: Field #2 value and format is changed after iteration. Expected Results: Nothing is changed if we just iterate through document fields. Reproducible: Always User Profile Reset: No Additional Info: When field #2 is double-clicked directly it does show correct field format.
Created attachment 173750 [details] chapter_number.odt
Vasily Melenchuk committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/965636121cb1fb09739fcbca2c85f0a07bf6bf96 tdf#143483: sw field edit: improved selection of format It will be available in 7.3.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/267a0e94920dbaf3f9db316c9cbfe6fa72be8818 tdf#143483: sw: Add UItest It will be available in 7.4.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.