summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-07-07 16:05:19 +0100
committerMichael Meeks <michael.meeks@collabora.com>2020-07-11 12:08:41 +0200
commit93df58aea6684b9e38b4dd6886c8e707b6458770 (patch)
treeabaa6e63c5b0f73202cd4e565ab88e7c4069f592 /sw
parentfd706799c8c91db340464c38ae8d4ca3dcf82575 (diff)
ofz#23961 pad back to original length
in case of multi-byte input encoding resulting in a shorter output string than input Change-Id: Ieb4bb7b5f4551ca22e87c573233f083901f3d3c0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98273 Tested-by: Jenkins Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98516 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/filter/ww8/ww8par2.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/sw/source/filter/ww8/ww8par2.cxx b/sw/source/filter/ww8/ww8par2.cxx
index 058662e47c12..c96f74b28559 100644
--- a/sw/source/filter/ww8/ww8par2.cxx
+++ b/sw/source/filter/ww8/ww8par2.cxx
@@ -615,6 +615,9 @@ void SwWW8ImplReader::SetAnlvStrings(SwNumFormat &rNum, WW8_ANLV const &rAV,
return;
}
sText = OUString(reinterpret_cast<char const *>(pText), nLen, eCharSet);
+ // ofz#23961 in case of multi-byte input encoding resulting in shorter
+ // output pad to full length with something semi-arbitrary
+ comphelper::string::padToLength(sText, nLen, cBulletChar);
}
else
{