sw/source/uibase/wrtsh/wrtsh1.cxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
New commits: commit a2f6b4e8995c149620db4fcfe7e355af4fbc869e Author: Jim Raykowski <rayk...@gmail.com> AuthorDate: Wed Mar 3 14:37:36 2021 -0900 Commit: Jim Raykowski <rayk...@gmail.com> CommitDate: Tue Mar 9 02:26:15 2021 +0100 tdf#88064 In add mode don't change SetCursor and KillSel functions when shell is popped Change-Id: Ic7b38563c4f05d4a1ccf792f21db42076a39947f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111943 Tested-by: Jenkins Reviewed-by: Jim Raykowski <rayk...@gmail.com> diff --git a/sw/source/uibase/wrtsh/wrtsh1.cxx b/sw/source/uibase/wrtsh/wrtsh1.cxx index 32b91a1ff2fd..be70c7b66014 100644 --- a/sw/source/uibase/wrtsh/wrtsh1.cxx +++ b/sw/source/uibase/wrtsh/wrtsh1.cxx @@ -1716,8 +1716,11 @@ bool SwWrtShell::Pop(SwCursorShell::PopMode const eDelete) bool bRet = SwCursorShell::Pop(eDelete); if( bRet && IsSelection() ) { - m_fnSetCursor = &SwWrtShell::SetCursorKillSel; - m_fnKillSel = &SwWrtShell::ResetSelect; + if (!IsAddMode()) + { + m_fnSetCursor = &SwWrtShell::SetCursorKillSel; + m_fnKillSel = &SwWrtShell::ResetSelect; + } } return bRet; } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits