Fixes #18646 (closed)
Upstream change: https://github.com/libharu/libharu/commit/8fe51be99fed527259dfab3b201f5c49dd36066c