fdo#84315: quick fix for sw too

Similar to 08f33ca66559dfafd29ab0c6073232cf05a6d4e5

(cherry picked from commit 3c6f3290955cfaeaff4d1e38cb1b9d125eac4d61
and commit 37c00bff114fe39e553ea6f1b8e68d6c6ff93eba)

Change-Id: I04f11a3821cb3793e5f993995b0c10fc7a62420b
Reviewed-on: https://gerrit.libreoffice.org/11765
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>