diff options
Diffstat (limited to 'xmloff/source/style/fonthdl.cxx')
-rw-r--r-- | xmloff/source/style/fonthdl.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/xmloff/source/style/fonthdl.cxx b/xmloff/source/style/fonthdl.cxx index 60da2fca83e1..e446aab5b437 100644 --- a/xmloff/source/style/fonthdl.cxx +++ b/xmloff/source/style/fonthdl.cxx @@ -17,6 +17,10 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ +#include <sal/config.h> + +#include <string_view> + #include "fonthdl.hxx" #include <sax/tools/converter.hxx> @@ -93,7 +97,7 @@ bool XMLFontFamilyNamePropHdl::importXML( const OUString& rStrImpValue, uno::Any if( !sValue.isEmpty() ) sValue.append(';'); - sValue.appendCopy(rStrImpValue, nFirst, nLast-nFirst+1); + sValue.append(std::u16string_view(rStrImpValue).substr(nFirst, nLast-nFirst+1)); } if( -1 != nPos ) |