diff options
Diffstat (limited to 'sw/source/core/edit/edglss.cxx')
-rw-r--r-- | sw/source/core/edit/edglss.cxx | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/sw/source/core/edit/edglss.cxx b/sw/source/core/edit/edglss.cxx index 1e3ccacc2bf9..325888b2bc3e 100644 --- a/sw/source/core/edit/edglss.cxx +++ b/sw/source/core/edit/edglss.cxx @@ -150,7 +150,7 @@ sal_uInt16 SwEditShell::SaveGlossaryDoc( SwTextBlocks& rBlock, } /// copy all selections to the doc -bool SwEditShell::_CopySelToDoc( SwDoc* pInsDoc, SwNodeIndex* pSttNd ) +bool SwEditShell::_CopySelToDoc( SwDoc* pInsDoc ) { OSL_ENSURE( pInsDoc, "no Ins.Document" ); @@ -161,13 +161,6 @@ bool SwEditShell::_CopySelToDoc( SwDoc* pInsDoc, SwNodeIndex* pSttNd ) SwPosition aPos( aIdx, SwIndex(pContentNode, (pContentNode) ? pContentNode->Len() : 0)); - // Should the index be reset to start? - if( pSttNd ) - { - *pSttNd = aPos.nNode; - --(*pSttNd); - } - bool bRet = false; SET_CURR_SHELL( this ); @@ -250,10 +243,6 @@ bool SwEditShell::_CopySelToDoc( SwDoc* pInsDoc, SwNodeIndex* pSttNd ) if( !pInsDoc->getIDocumentFieldsAccess().IsExpFieldsLocked() ) pInsDoc->getIDocumentFieldsAccess().UpdateExpFields(nullptr, true); - // set the saved Node position back to the correct Node - if( bRet && pSttNd ) - ++(*pSttNd); - return bRet; } |