sw/source/core/edit/edglss.cxx |    5 +++++
 1 file changed, 5 insertions(+)

New commits:
commit 0be41ce3002e1ee3c84ec3096c95e72645faa187
Author:     Michael Stahl <michael.st...@cib.de>
AuthorDate: Thu Jun 18 18:29:57 2020 +0200
Commit:     Michael Stahl <michael.st...@cib.de>
CommitDate: Thu Jun 18 20:20:49 2020 +0200

    sw: SelectAll should copy section before table at start of document
    
    Change-Id: I51c9c84073a89402e7e4952c346ad13e1d264622
    related: tdf#133982 tdf#133990, see bugdoc of the latter
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/96619
    Tested-by: Jenkins
    Reviewed-by: Michael Stahl <michael.st...@cib.de>

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)
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to