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

Eike Rathke erack at redhat.com
Tue Apr 21 13:10:50 PDT 2015


 sc/source/core/tool/compiler.cxx |    9 +++++++++
 1 file changed, 9 insertions(+)

New commits:
commit e468131fa45fcdf8fe3ef693887f444a6ff1fdbe
Author: Eike Rathke <erack at redhat.com>
Date:   Tue Apr 21 21:55:45 2015 +0200

    TableRef: relative sheet reference if table is on same sheet
    
    Change-Id: I823b3495938d29242dabf88fc262f9d7d720434a

diff --git a/sc/source/core/tool/compiler.cxx b/sc/source/core/tool/compiler.cxx
index 023e5dc..66982c3 100644
--- a/sc/source/core/tool/compiler.cxx
+++ b/sc/source/core/tool/compiler.cxx
@@ -5122,6 +5122,10 @@ bool ScCompiler::HandleTableRef()
                     }
                     if (aRange.aStart.Tab() != aPos.Tab())
                         aRefData.SetFlag3D( true);
+                    else
+                    {
+                        aRefData.SetTabRel( true);
+                    }
                     aRefData.SetAddress( aRange.aStart, aPos);
                     pTR->SetAreaRefRPN( pNew->AddSingleReference( aRefData ));
                 }
@@ -5138,6 +5142,11 @@ bool ScCompiler::HandleTableRef()
                     }
                     if (aRange.aStart.Tab() != aPos.Tab())
                         aRefData.Ref1.SetFlag3D( true);
+                    else
+                    {
+                        aRefData.Ref1.SetTabRel( true);
+                        aRefData.Ref2.SetTabRel( true);
+                    }
                     aRefData.SetRange( aRange, aPos);
                     pTR->SetAreaRefRPN( pNew->AddDoubleReference( aRefData ));
                 }


More information about the Libreoffice-commits mailing list