[Libreoffice-commits] core.git: sw/source
Michael Stahl (via logerrit)
logerrit at kemper.freedesktop.org
Thu Jun 18 18:21:26 UTC 2020
sw/source/core/edit/edglss.cxx | 5 +++++
1 file changed, 5 insertions(+)
New commits:
commit 0be41ce3002e1ee3c84ec3096c95e72645faa187
Author: Michael Stahl <Michael.Stahl at cib.de>
AuthorDate: Thu Jun 18 18:29:57 2020 +0200
Commit: Michael Stahl <michael.stahl at 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.stahl at 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)
More information about the Libreoffice-commits
mailing list