diff options
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/edit/edglss.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sw/source/core/edit/edglss.cxx b/sw/source/core/edit/edglss.cxx index b71c9fde5d9a..9ae88459452e 100644 --- a/sw/source/core/edit/edglss.cxx +++ b/sw/source/core/edit/edglss.cxx @@ -237,6 +237,11 @@ bool SwEditShell::CopySelToDoc( SwDoc* pInsDoc ) { aPaM.Start()->nNode = *pTableNode; } + while (SwSectionNode const* pSectionNode = + aPaM.Start()->nNode.GetNode().StartOfSectionNode()->FindSectionNode()) + { + aPaM.Start()->nNode = *pSectionNode; + } aPaM.Start()->nContent.Assign(nullptr, 0); } bRet = GetDoc()->getIDocumentContentOperations().CopyRange( aPaM, aPos, SwCopyFlags::CheckPosInFly) |