oox/source/helper/attributelist.cxx | 3 +++ 1 file changed, 3 insertions(+)
New commits: commit c742ab96ccac05465d87e860838c92f1f370aea3 Author: Eike Rathke <er...@redhat.com> AuthorDate: Mon May 8 14:25:28 2023 +0200 Commit: Eike Rathke <er...@redhat.com> CommitDate: Mon May 8 23:18:46 2023 +0200 Do not copy decodeXString() string and analyse if there is nothing to decode ... which usually isn't. Change-Id: I1cadc5a4c0072d5152173ad41e54e25c224e96db Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151509 Reviewed-by: Eike Rathke <er...@redhat.com> Tested-by: Jenkins diff --git a/oox/source/helper/attributelist.cxx b/oox/source/helper/attributelist.cxx index 037483cefb5a..7a973975f3d2 100644 --- a/oox/source/helper/attributelist.cxx +++ b/oox/source/helper/attributelist.cxx @@ -98,6 +98,9 @@ OUString AttributeConversion::decodeXString( const OUString& rValue ) // string shorter than one encoded character - no need to decode if( rValue.getLength() < XSTRING_ENCCHAR_LEN ) return rValue; + if (rValue.indexOf(u"_x") == -1) + return rValue; + OUStringBuffer aBuffer; const sal_Unicode* pcStr = rValue.getStr(); const sal_Unicode* pcEnd = pcStr + rValue.getLength();