summaryrefslogtreecommitdiff
path: root/sc/source/core/tool/compiler.cxx
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2015-04-18 00:44:06 +0200
committerEike Rathke <erack@redhat.com>2015-04-18 00:46:09 +0200
commit6f0ac5ddf1eedc153e3e46836f885ff59e57fd1a (patch)
tree45d133ba18f8908ecd4381d702042cbc15d3b1ab /sc/source/core/tool/compiler.cxx
parent8c2173d95c8fd626c5399144d5820a791147bdbf (diff)
TableRef: set 3D flag if table is on different sheet
Change-Id: I1a25d603333b78dc89534e45fa23f99c18bd0ee6
Diffstat (limited to 'sc/source/core/tool/compiler.cxx')
-rw-r--r--sc/source/core/tool/compiler.cxx4
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 ));
}