Lionel Elie Mamane committed a patch related to this issue. It has been pushed to "master":
http://cgit.freedesktop.org/libreoffice/core/commit/?id=280f234e5e9fb2879ef99d6888bd0b5b30d16b45 fixup tdf#92538 It will be available in 5.2.0. -- Stéphane Aulery