sw/source/core/undo/undobj.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit f5509026e7fbb354b2acc8ad62100d71e59cc0be Author: Michael Stahl <michael.st...@cib.de> AuthorDate: Thu Jun 11 14:12:28 2020 +0200 Commit: Michael Stahl <michael.st...@cib.de> CommitDate: Fri Jun 12 11:39:43 2020 +0200 tdf#132321 sw: adapt fly at-para deletion to at-char wrt. sections 971205dc2110c1c23ff1db1fc4041e2babf6fa9f changed at-char selection to check that not only the start is at the start of the section or the end is at the end of the section, but that both are true. Let's do this for at-para flys too for consistency, changing what was introduced with 91b2325808a75174f284c48c8b8afc118fad74e4. Change-Id: I1ec93b076d729288ce0809d1cfc24379aa9591ab Reviewed-on: https://gerrit.libreoffice.org/c/core/+/96125 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.st...@cib.de> (cherry picked from commit be2f539012d818eaa2d40a9cf199b53d32e1dee4) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/96148 diff --git a/sw/source/core/undo/undobj.cxx b/sw/source/core/undo/undobj.cxx index c4516f50cd66..1da78ab1d9a4 100644 --- a/sw/source/core/undo/undobj.cxx +++ b/sw/source/core/undo/undobj.cxx @@ -1630,14 +1630,14 @@ bool IsSelectFrameAnchoredAtPara(SwPosition const & rAnchorPos, && ((rStart.nNode != rEnd.nNode && rStart.nContent == 0 // but not if the selection is backspace/delete! && IsNotBackspaceHeuristic(rStart, rEnd)) - || IsAtStartOfSection(rStart)))) + || (IsAtStartOfSection(rAnchorPos) && IsAtEndOfSection2(rEnd))))) && ((rAnchorPos.nNode < rEnd.nNode) || (rAnchorPos.nNode == rEnd.nNode && !(nDelContentType & DelContentType::ExcludeFlyAtStartEnd) // special case: fully deleted node && ((rEnd.nNode != rStart.nNode && rEnd.nContent == rEnd.nNode.GetNode().GetTextNode()->Len() && IsNotBackspaceHeuristic(rStart, rEnd)) - || IsAtEndOfSection(rEnd)))); + || (IsAtEndOfSection(rAnchorPos) && IsAtStartOfSection2(rStart))))); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits