diff options
Diffstat (limited to 'sw/source/core/crsr/pam.cxx')
-rw-r--r-- | sw/source/core/crsr/pam.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sw/source/core/crsr/pam.cxx b/sw/source/core/crsr/pam.cxx index 0d888149e6d0..f188f65f5791 100644 --- a/sw/source/core/crsr/pam.cxx +++ b/sw/source/core/crsr/pam.cxx @@ -17,6 +17,10 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ +#include <sal/config.h> + +#include <string_view> + #include <tools/gen.hxx> #include <hintids.hxx> #include <editeng/protitem.hxx> @@ -1026,7 +1030,7 @@ OUString SwPaM::GetText() const ? End()->nContent.GetIndex() : aTmpStr.getLength(); - aResult.appendCopy(aTmpStr, nStart, nEnd-nStart); + aResult.append(std::u16string_view(aTmpStr).substr(nStart, nEnd-nStart)); } else { |