[Libreoffice-commits] core.git: sc/source

Mike Kaganski mike.kaganski at collabora.com
Mon Dec 12 03:33:49 UTC 2016


 sc/source/ui/view/tabview3.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 53dbc419b2e886b345a3512cf11e035ff2b7651b
Author: Mike Kaganski <mike.kaganski at collabora.com>
Date:   Sun Dec 11 00:33:07 2016 +0300

    tdf#63593: revert 88f91adf266f19659014df22e09ce6c6761fb6f1
    
    This patch caused a regression that on creation of a new sheet
    while there's an unfinished edit of a cell, by using "+" in bottom
    left corner, that edit is committed to newly created sheet instead
    of that in which it was performed.
    
    Also, fixing original problem (tdf#42432), it forced the pending
    edit on deleted page to go to an existing page, which could
    overwrite existing data without being noticed (dataloss).
    
    Reverting the patch does not reintroduce the original problem that
    it intended to fix (a crash) in master.
    
    Change-Id: I696a85ec9d08ebb3621ebdbce4d9f71eadcdb2c2
    Reviewed-on: https://gerrit.libreoffice.org/31843
    Reviewed-by: Markus Mohrhard <markus.mohrhard at googlemail.com>
    Tested-by: Markus Mohrhard <markus.mohrhard at googlemail.com>

diff --git a/sc/source/ui/view/tabview3.cxx b/sc/source/ui/view/tabview3.cxx
index 1854e7c..58a846c 100644
--- a/sc/source/ui/view/tabview3.cxx
+++ b/sc/source/ui/view/tabview3.cxx
@@ -1795,6 +1795,7 @@ void ScTabView::SetTabNo( SCTAB nTab, bool bNew, bool bExtendSelection, bool bSa
         // window  (is called from SetCursor)
         UpdateShow();
         aViewData.ResetOldCursor();
+        SetCursor( aViewData.GetCurX(), aViewData.GetCurY(), true );
 
         SfxBindings& rBindings = aViewData.GetBindings();
         ScMarkData& rMark = aViewData.GetMarkData();
@@ -1831,7 +1832,6 @@ void ScTabView::SetTabNo( SCTAB nTab, bool bNew, bool bExtendSelection, bool bSa
             rBindings.Invalidate( FID_TAB_DESELECTALL );
         }
 
-        SetCursor( aViewData.GetCurX(), aViewData.GetCurY(), true );
         bool bUnoRefDialog = pScMod->IsRefDialogOpen() && pScMod->GetCurRefDlgId() == WID_SIMPLE_REF;
 
         // recalc zoom-dependent values (before TabChanged, before UpdateEditViewPos)


More information about the Libreoffice-commits mailing list