summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorJim Raykowski <raykowj@gmail.com>2018-01-02 18:30:50 -0900
committerThorsten Behrens <Thorsten.Behrens@CIB.de>2018-01-13 11:06:25 +0100
commit4393ca834641599281c8feb4259228b90cb4499b (patch)
treeac961fec8d8d2508fd542a76603564c0ed22368f /sc
parent3e9bea4dcb6b780a3ef720858bb5dca92b065a39 (diff)
tdf#106611 make click on status bar insert/overwrite field work
Change-Id: Ife8f9126a0249a8abe4e9fbe00917a784288c8e7 Reviewed-on: https://gerrit.libreoffice.org/47290 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/view/editsh.cxx12
1 files changed, 1 insertions, 11 deletions
diff --git a/sc/source/ui/view/editsh.cxx b/sc/source/ui/view/editsh.cxx
index 2b08da9db8ca..bb0496966d4e 100644
--- a/sc/source/ui/view/editsh.cxx
+++ b/sc/source/ui/view/editsh.cxx
@@ -187,6 +187,7 @@ void ScEditShell::Execute( SfxRequest& rReq )
switch ( nSlot )
{
+ case SID_ATTR_INSERT:
case FID_INS_CELL_CONTENTS: // Insert taste, while defined as Acc
bIsInsertMode = !pTableView->IsInsertMode();
pTableView->SetInsertMode( bIsInsertMode );
@@ -195,17 +196,6 @@ void ScEditShell::Execute( SfxRequest& rReq )
rBindings.Invalidate( SID_ATTR_INSERT );
break;
- case SID_ATTR_INSERT:
- if ( pReqArgs )
- {
- bIsInsertMode = static_cast<const SfxBoolItem&>(pReqArgs->Get(nSlot)).GetValue();
- pTableView->SetInsertMode( bIsInsertMode );
- if (pTopView)
- pTopView->SetInsertMode( bIsInsertMode );
- rBindings.Invalidate( SID_ATTR_INSERT );
- }
- break;
-
case SID_THES:
{
OUString aReplaceText;