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

Eike Rathke erack at redhat.com
Fri Mar 10 17:34:58 UTC 2017


 sc/source/core/data/grouptokenconverter.cxx |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit ca1f051972946b24cb6658143fb0d0ac3587a988
Author: Eike Rathke <erack at redhat.com>
Date:   Fri Mar 10 18:32:27 2017 +0100

    Resolves: tdf#106459 3D reference can't be handled as vector reference
    
    Change-Id: Icba12a6218086079a7d5538f7263bccb1f2ee1b0

diff --git a/sc/source/core/data/grouptokenconverter.cxx b/sc/source/core/data/grouptokenconverter.cxx
index 024a252..12751a1 100644
--- a/sc/source/core/data/grouptokenconverter.cxx
+++ b/sc/source/core/data/grouptokenconverter.cxx
@@ -169,6 +169,10 @@ bool ScGroupTokenConverter::convert( ScTokenArray& rCode, sc::FormulaLogger::Gro
                 ScComplexRefData aRef = *p->GetDoubleRef();
                 ScRange aAbs = aRef.toAbs(mrPos);
 
+                // Multiple sheets not handled by vector/matrix.
+                if (aRef.Ref1.Tab() != aRef.Ref2.Tab())
+                    return false;
+
                 // Check for self reference.
                 if (aRef.Ref1.IsRowRel())
                 {


More information about the Libreoffice-commits mailing list