diff options
-rw-r--r-- | sw/source/core/doc/doctxm.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/core/doc/doctxm.cxx b/sw/source/core/doc/doctxm.cxx index 5ac032a94774..1fb42547e0ba 100644 --- a/sw/source/core/doc/doctxm.cxx +++ b/sw/source/core/doc/doctxm.cxx @@ -1583,7 +1583,8 @@ void SwTOXBaseSection::GenerateText( sal_uInt16 nArrayIdx, // pTOXNd is only set at the first mark SwTxtNode* pTOXNd = (SwTxtNode*)aSortArr[nArrayIdx]->pTOXNd; - OUString rTxt = pTOXNd->GetTxt(); + // FIXME this operates directly on the node text + OUString & rTxt = const_cast<OUString&>(pTOXNd->GetTxt()); rTxt = ""; for(sal_uInt16 nIndex = nArrayIdx; nIndex < nArrayIdx + nCount; nIndex++) { |