diff options
Diffstat (limited to 'sw/source/core/edit/editsh.cxx')
-rw-r--r-- | sw/source/core/edit/editsh.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sw/source/core/edit/editsh.cxx b/sw/source/core/edit/editsh.cxx index f6e3da27c6dd..de33e7e86d13 100644 --- a/sw/source/core/edit/editsh.cxx +++ b/sw/source/core/edit/editsh.cxx @@ -122,6 +122,13 @@ void SwEditShell::Insert2(const String &rStr, const bool bForceExpandHints ) OSL_ENSURE( bSuccess, "Doc->Insert() failed." ); (void) bSuccess; + GetDoc()->UpdateRsid( *_pStartCrsr, rStr.Len() ); + + // Set paragraph rsid if beginning of paragraph + SwTxtNode *pTxtNode = _pStartCrsr->GetPoint()->nNode.GetNode().GetTxtNode(); + if( pTxtNode && pTxtNode->Len() == 1) + GetDoc()->UpdateParRsid( pTxtNode ); + SaveTblBoxCntnt( _pStartCrsr->GetPoint() ); } while( (_pStartCrsr=(SwPaM *)_pStartCrsr->GetNext()) != __pStartCrsr ); |