Created attachment 170530 [details] bugdoc 1. Open bugdoc 2. Try to select the field in the first table cell with the mouse Expected: You click on the field, and the cursor goes into the field Actual: You probably start dragging the table itself
Regression from: commit 4ce8120f1e53f7b81e653b01d141643013bc69ab Author: Michael Stahl <Michael.Stahl@cib.de> Date: Fri Jan 24 19:05:40 2020 +0100 tdf#45589 sw: create and paint text portions for bookmarks https://git.libreoffice.org/core/+/4ce8120f1e53f7b81e653b01d141643013bc69ab%5E%21 It was an intentional change, see this part of the commit msg: > * SwLinePortion::PrePaint() wants to avoid moving the portion > half-outside the frame but often it looks better that way (previously > it was misaligned, now it's half-outside).
After more investigation, it turned out that above did not really affect field selection, only the display. The following commit changed the behavior, so that the field can no longer be selected properly (or bring up the field edit dialog when double clicked): commit 27c46ecf34b32bae1806d3fc0e1684179301feb8 Author: Miklos Vajna <vmiklos@collabora.com> Date: Thu Aug 1 15:31:10 2019 +0200 sw comments on frames: improve doc coordinates -> doc model pos conversion https://git.libreoffice.org/core/commit/27c46ecf34b32bae1806d3fc0e1684179301feb8
I'm a bit confused why the above commit affects script field portions. Clearly the intention is to change the behavior only for fly content portions and postit portions. Anyhow, testImageComment should cover the commented-image case, so as long as that passes, feel free to tweak the conditions in ConsiderNextPortionForCursorOffset().
Samuel Mehrbrodt committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/5302268de6a33716c7746aa13232746ad2f2b561 tdf#141079 Restore double click behavior for script fields 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.
Samuel Mehrbrodt committed a patch related to this issue. It has been pushed to "libreoffice-7-1": https://git.libreoffice.org/core/commit/9804b72b76def2c17a4b40166eb47be8fe83d3df tdf#141079 Restore double click behavior for script fields It will be available in 7.1.3. 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.
Samuel Mehrbrodt committed a patch related to this issue. It has been pushed to "libreoffice-7-0": https://git.libreoffice.org/core/commit/bf71581e49130e25a5f8961902ae38e87a8248e9 tdf#141079 Restore double click behavior for script fields It will be available in 7.0.6. 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.