Here's a candidate patch to fix this bug.

 

Last edit: Christopher Bazley 2026-10-09