summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Stahl <Michael.Stahl@cib.de>2020-06-10 17:30:58 +0200
committerMichael Stahl <michael.stahl@cib.de>2020-06-11 13:22:11 +0200
commitf30e4981248f1ebc37728f5848773f730f14ea56 (patch)
tree80582f55126a42b273ae0ca58215de4439b7322b
parent6e77dcd9d2605e55b57d0a379d87cdd2c48b62f4 (diff)
sw: follow-up: fix other calls of ContentIdxStore::Save(Len())
Presumably these have the same bug as sw_JoinText(). Change-Id: I77a794be92f36cf2163f819d3941d70e69eb2f27 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/96057 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.stahl@cib.de>
-rw-r--r--sw/source/core/docnode/ndtbl.cxx4
-rw-r--r--sw/source/core/undo/untbl.cxx4
2 files changed, 5 insertions, 3 deletions
diff --git a/sw/source/core/docnode/ndtbl.cxx b/sw/source/core/docnode/ndtbl.cxx
index 3e36cfcabc81..2cde2f38f190 100644
--- a/sw/source/core/docnode/ndtbl.cxx
+++ b/sw/source/core/docnode/ndtbl.cxx
@@ -1065,7 +1065,7 @@ SwTableNode* SwNodes::TextToTable( const SwNodeRange& rRange, sal_Unicode cCh,
SwPosition aCntPos( aSttIdx, SwIndex( pTextNd ));
const std::shared_ptr< sw::mark::ContentIdxStore> pContentStore(sw::mark::ContentIdxStore::Create());
- pContentStore->Save( pDoc, aSttIdx.GetIndex(), pTextNd->GetText().getLength() );
+ pContentStore->Save(pDoc, aSttIdx.GetIndex(), SAL_MAX_INT32);
if( T2T_PARA != cCh )
{
@@ -1564,7 +1564,7 @@ static void lcl_DelBox( SwTableBox* pBox, DelTabPara* pDelPara )
const std::shared_ptr<sw::mark::ContentIdxStore> pContentStore(sw::mark::ContentIdxStore::Create());
const sal_Int32 nOldTextLen = aCntIdx.GetIndex();
- pContentStore->Save( pDoc, nNdIdx, pCurTextNd->GetText().getLength() );
+ pContentStore->Save(pDoc, nNdIdx, SAL_MAX_INT32);
pDelPara->pLastNd->JoinNext();
diff --git a/sw/source/core/undo/untbl.cxx b/sw/source/core/undo/untbl.cxx
index 1cbf5c1bdad3..8cbf571b39e9 100644
--- a/sw/source/core/undo/untbl.cxx
+++ b/sw/source/core/undo/untbl.cxx
@@ -576,7 +576,9 @@ SwTableNode* SwNodes::UndoTableToText( sal_uLong nSttNd, sal_uLong nEndNd,
{
pContentStore->Clear();
if( pTextNd )
- pContentStore->Save( GetDoc(), aSttIdx.GetIndex(), pTextNd->GetText().getLength() );
+ {
+ pContentStore->Save(GetDoc(), aSttIdx.GetIndex(), SAL_MAX_INT32);
+ }
}
if( pTextNd )