diff options
author | Eike Rathke <erack@redhat.com> | 2015-04-18 00:44:06 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2015-04-18 00:46:09 +0200 |
commit | 6f0ac5ddf1eedc153e3e46836f885ff59e57fd1a (patch) | |
tree | 45d133ba18f8908ecd4381d702042cbc15d3b1ab /sc/source/core | |
parent | 8c2173d95c8fd626c5399144d5820a791147bdbf (diff) |
TableRef: set 3D flag if table is on different sheet
Change-Id: I1a25d603333b78dc89534e45fa23f99c18bd0ee6
Diffstat (limited to 'sc/source/core')
-rw-r--r-- | sc/source/core/tool/compiler.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sc/source/core/tool/compiler.cxx b/sc/source/core/tool/compiler.cxx index 64b566ca3a4a..023e5dc815ad 100644 --- a/sc/source/core/tool/compiler.cxx +++ b/sc/source/core/tool/compiler.cxx @@ -5120,6 +5120,8 @@ bool ScCompiler::HandleTableRef() { aRefData.SetRowRel( true); } + if (aRange.aStart.Tab() != aPos.Tab()) + aRefData.SetFlag3D( true); aRefData.SetAddress( aRange.aStart, aPos); pTR->SetAreaRefRPN( pNew->AddSingleReference( aRefData )); } @@ -5134,6 +5136,8 @@ bool ScCompiler::HandleTableRef() aRefData.Ref1.SetRowRel( true); aRefData.Ref2.SetRowRel( true); } + if (aRange.aStart.Tab() != aPos.Tab()) + aRefData.Ref1.SetFlag3D( true); aRefData.SetRange( aRange, aPos); pTR->SetAreaRefRPN( pNew->AddDoubleReference( aRefData )); } |