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

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


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

New commits:
commit d69017c8a17be21657ea7ab9d37023ee59116799
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>

diff --git a/sc/source/ui/formdlg/formula.cxx b/sc/source/ui/formdlg/formula.cxx
index 1856d0ef4f0c..7c4590ff1db5 100644
--- a/sc/source/ui/formdlg/formula.cxx
+++ b/sc/source/ui/formdlg/formula.cxx
@@ -448,8 +448,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