diff options
-rw-r--r-- | sc/source/ui/view/editsh.cxx | 12 |
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; |