summaryrefslogtreecommitdiff
path: root/sc/source/filter/xml/xmlexprt.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/filter/xml/xmlexprt.cxx')
-rw-r--r--sc/source/filter/xml/xmlexprt.cxx7
1 files changed, 1 insertions, 6 deletions
diff --git a/sc/source/filter/xml/xmlexprt.cxx b/sc/source/filter/xml/xmlexprt.cxx
index f6f7ab9a552c..8a97aa949afb 100644
--- a/sc/source/filter/xml/xmlexprt.cxx
+++ b/sc/source/filter/xml/xmlexprt.cxx
@@ -3111,12 +3111,7 @@ void flushParagraph(
{
const editeng::Section& rSec = *it;
- const sal_Unicode* pBeg = rParaText.getStr();
- std::advance(pBeg, rSec.mnStart);
- const sal_Unicode* pEnd = pBeg;
- std::advance(pEnd, rSec.mnEnd-rSec.mnStart);
-
- OUString aContent(pBeg, pEnd-pBeg);
+ OUString aContent(rParaText.copy(rSec.mnStart, rSec.mnEnd - rSec.mnStart));
std::vector<XMLPropertyState> aPropStates;
const SvxFieldData* pField = toXMLPropertyStates(aPropStates, rSec.maAttributes, xMapper, rAttrMap);