summaryrefslogtreecommitdiff
path: root/sw/source/uibase/wrtsh
diff options
context:
space:
mode:
authorJim Raykowski <raykowj@gmail.com>2021-03-03 14:37:36 -0900
committerJim Raykowski <raykowj@gmail.com>2021-03-09 02:26:15 +0100
commita2f6b4e8995c149620db4fcfe7e355af4fbc869e (patch)
tree1ec05c547ec628b1f54d851ae2b5273af09faacf /sw/source/uibase/wrtsh
parent740fca22fc92065436dee9beae89852fc388db54 (diff)
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 <raykowj@gmail.com>
Diffstat (limited to 'sw/source/uibase/wrtsh')
-rw-r--r--sw/source/uibase/wrtsh/wrtsh1.cxx7
1 files changed, 5 insertions, 2 deletions
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;
}