See bug and patch at https://issues.apache.org/ooo/show_bug.cgi?id=56806
cherrypicked patch, so this is fixed: http://cgit.freedesktop.org/libreoffice/core/commit/?id=7cd378518b38def9cda5a0055a1d7525aad1c427