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/+/98268 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
This commit is contained in:
@@ -609,6 +609,9 @@ void SwWW8ImplReader::SetAnlvStrings(SwNumFormat &rNum, WW8_ANLV const &rAV,
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
sText = OUString(reinterpret_cast<char const *>(pText), nLen, eCharSet);
|
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
|
else
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user