From a2f6b4e8995c149620db4fcfe7e355af4fbc869e Mon Sep 17 00:00:00 2001 From: Jim Raykowski Date: Wed, 3 Mar 2021 14:37:36 -0900 Subject: 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 --- sw/source/uibase/wrtsh/wrtsh1.cxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'sw') 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; } -- cgit