sc/source/ui/view/editsh.cxx |   12 +-----------
 1 file changed, 1 insertion(+), 11 deletions(-)

New commits:
commit 4393ca834641599281c8feb4259228b90cb4499b
Author: Jim Raykowski <rayk...@gmail.com>
Date:   Tue Jan 2 18:30:50 2018 -0900

    tdf#106611 make click on status bar insert/overwrite field work
    
    Change-Id: Ife8f9126a0249a8abe4e9fbe00917a784288c8e7
    Reviewed-on: https://gerrit.libreoffice.org/47290
    Tested-by: Jenkins <c...@libreoffice.org>
    Reviewed-by: Thorsten Behrens <thorsten.behr...@cib.de>

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;
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to