Created attachment 193046 [details] The attachment announced in the report In Writer a coimmand ThisComponent.CurrentController.select(myTextFiled.Anchor) is simply ignored. The effects are demonstrated in the attached example. The bug is new. It never occured with versions 3.3 through 7.5 (and also not in AOO 4.1.7).
No reproduced in 7.5.9, the macro selects the text runs. Bug reproduced in: Version: 7.6.5.2 (X86_64) / LibreOffice Community Build ID: 38d5f62f85355c192ef5f1dd47c5c0c0c6d6598b CPU threads: 8; OS: Linux 6.5; UI render: default; VCL: gtk3 Locale: en-AU (en_AU.UTF-8); UI: en-US Calc: threaded Bibisected with linux-64-7.6 repository to first bad build [7b68f3b055c3998e14bfe0df46ee0051e960b18a] which points to: commit 635448a996714a81cb15b41ac4bb0c73cabfb74f author Noel Grandin Wed Jan 18 15:49:41 2023 +0200 committer Noel Grandin Fri Jan 20 08:20:20 2023 +0000 XUnoTunnel->dynamic_cast in SwXTextRange Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145857 But works again in: Version: 24.8.0.0.alpha0+ (X86_64) / LibreOffice Community Build ID: 1344e6261a1d856c71eca1e0cc29215a586bf335 CPU threads: 8; OS: Linux 6.5; UI render: default; VCL: gtk3 Locale: en-AU (en_AU.UTF-8); UI: en-US Calc: CL threaded linux-64-24.8 repo does not have the fix currently, so it must be something in the last 12 days: https://git.libreoffice.org/core/+log/2887ffbf240aa70330cb50bf810170cf9c896405..1344e6261a1d856c71eca1e0cc29215a586bf335 Maybe Noel has an idea.
(In reply to Stéphane Guillou (stragu) from comment #1) > Maybe Noel has an idea. Sorry, no idea
Bibisected the fix to: commit 8f2de92b3da99346f7282e623d47912f40f92b7b author Michael Stahl Fri Mar 22 12:28:43 2024 +0100 committer Michael Stahl Fri Mar 22 15:15:06 2024 +0100 sw: GetSelectableFromAny() broken for SwXTextRange The function unnecessarily uses an intermediate XUnoTunnel variable to handle SwXTextRange, but the implementation of XUnoTunnel was removed. (regression from commit 635448a996714a81cb15b41ac4bb0c73cabfb74f) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165162 (I need to remember to grep the offending commit in case it's mentioned) It has been cherrypicked to 24.2 and 7.6. Thank Michael for the fix!