[Libreoffice-commits] core.git: Branch 'libreoffice-5-4' - sc/source

Laurent BP laurent.balland-poirier at laposte.net
Mon Feb 12 20:07:38 UTC 2018


 sc/source/ui/formdlg/formula.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 505832b92e0e2a395ef22424de33168a76bcc2c3
Author: Laurent BP <laurent.balland-poirier at laposte.net>
Date:   Sat Feb 10 20:54:25 2018 +0100

    tdf#72440 Abs sheet ref must be given
    
    When resolving tdf#90799, sheet ref was forced abs
    But its value must be changed.
    It worked only if initial sheet = Sheet1
    
    Change-Id: I715f93dce93beb78d767e00dd45fb9634cb173a8
    Reviewed-on: https://gerrit.libreoffice.org/49548
    Reviewed-by: Eike Rathke <erack at redhat.com>
    Tested-by: Jenkins <ci at libreoffice.org>
    (cherry picked from commit d69017c8a17be21657ea7ab9d37023ee59116799)
    Reviewed-on: https://gerrit.libreoffice.org/49609

diff --git a/sc/source/ui/formdlg/formula.cxx b/sc/source/ui/formdlg/formula.cxx
index 308b206537d0..8d44d7bc987b 100644
--- a/sc/source/ui/formdlg/formula.cxx
+++ b/sc/source/ui/formdlg/formula.cxx
@@ -431,8 +431,9 @@ void ScFormulaDlg::SetReference( const ScRange& rRef, ScDocument* pRefDoc )
             bool bSingle = aRefData.Ref1 == aRefData.Ref2;
             if (m_CursorPos.Tab() != rRef.aStart.Tab())
             {
+                // pointer-selected => absolute sheet reference
+                aRefData.Ref1.SetAbsTab( rRef.aStart.Tab() );
                 aRefData.Ref1.SetFlag3D(true);
-                aRefData.Ref1.SetTabRel(false);     // pointer-selected => absolute sheet reference
             }
             if (bSingle)
                 aArray.AddSingleReference(aRefData.Ref1);


More information about the Libreoffice-commits mailing list