[Libreoffice-commits] core.git: sw/source
Jim Raykowski (via logerrit)
logerrit at kemper.freedesktop.org
Tue Mar 9 01:26:56 UTC 2021
sw/source/uibase/wrtsh/wrtsh1.cxx | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
New commits:
commit a2f6b4e8995c149620db4fcfe7e355af4fbc869e
Author: Jim Raykowski <raykowj at gmail.com>
AuthorDate: Wed Mar 3 14:37:36 2021 -0900
Commit: Jim Raykowski <raykowj at 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 <raykowj at 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;
}
More information about the Libreoffice-commits
mailing list