(cherry picked from commit 51fd7ca5ed)
51fd7ca5ed
Fixes https://gitlab.com/kicad/code/kicad/issues/14680
Fixes https://gitlab.com/kicad/code/kicad/issues/14220 (cherry picked from commit 05185ec81a)
05185ec81a