summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRüdiger Timm <rt@openoffice.org>2008-12-09 13:24:57 +0000
committerRüdiger Timm <rt@openoffice.org>2008-12-09 13:24:57 +0000
commit3a7141435bc71d44ec91160bf9c2f805de66c7f0 (patch)
tree13ea6ac9aac2405bc134e35446ed7fee1352aa16
parent1365768147216a98e657dbbc4e1e8cbd01390825 (diff)
CWS-TOOLING: integrate CWS i96529_DEV300
-rw-r--r--sc/source/core/tool/refdata.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/sc/source/core/tool/refdata.cxx b/sc/source/core/tool/refdata.cxx
index 9227878d9e19..ec25ba56832c 100644
--- a/sc/source/core/tool/refdata.cxx
+++ b/sc/source/core/tool/refdata.cxx
@@ -346,8 +346,10 @@ ComplRefData& ComplRefData::Extend( const SingleRefData & rRef, const ScAddress
Ref2.SetColRel( aRef.IsColRel());
if (Ref2.nRow == aRef.nRow)
Ref2.SetRowRel( aRef.IsRowRel());
+ // $Sheet1.$A$5:$A$6 => $Sheet1.$A$5:$A$5:$A$6 => $Sheet1.$A$5:$A$6, and
+ // not $Sheet1.$A$5:Sheet1.$A$6 (with invisible second 3D, but relative).
if (Ref2.nTab == aRef.nTab)
- Ref2.SetTabRel( aRef.IsTabRel());
+ Ref2.SetTabRel( bInherit3Dtemp ? Ref1.IsTabRel() : aRef.IsTabRel());
Ref2.CalcRelFromAbs( rPos);
// Force 3D if necessary. References to other sheets always.
if (Ref1.nTab != rPos.Tab())