diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-07-29 22:33:56 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-07-29 22:35:15 -0400 |
commit | 5e55d5ffb70437e917e4092f4030d5a454fd20d6 (patch) | |
tree | 5f47a0ff1ce14cd76310dcab198446c3c1d9fc1a /sc | |
parent | 6a816d1fdd63532c3a85ee9e7fe20040ee754f1a (diff) |
fdo#81330: When moving to a different sheet, set 3D flag on.
Change-Id: I16c6e687259635c4d0ac0e5dab0140941b409bc8
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/tool/token.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sc/source/core/tool/token.cxx b/sc/source/core/tool/token.cxx index 99a26a85bcf6..569834aec9d5 100644 --- a/sc/source/core/tool/token.cxx +++ b/sc/source/core/tool/token.cxx @@ -2812,6 +2812,8 @@ sc::RefUpdateResult ScTokenArray::AdjustReferenceOnMove( ScRange aOldRange = rCxt.maRange; aOldRange.Move(-rCxt.mnColDelta, -rCxt.mnRowDelta, -rCxt.mnTabDelta); + bool b3DFlag = rOldPos.Tab() != rNewPos.Tab(); + FormulaToken** p = pCode; FormulaToken** pEnd = p + static_cast<size_t>(nLen); for (; p != pEnd; ++p) @@ -2830,6 +2832,7 @@ sc::RefUpdateResult ScTokenArray::AdjustReferenceOnMove( } rRef.SetAddress(aAbs, rNewPos); + rRef.SetFlag3D(b3DFlag); } break; case svDoubleRef: @@ -2844,6 +2847,8 @@ sc::RefUpdateResult ScTokenArray::AdjustReferenceOnMove( } rRef.SetRange(aAbs, rNewPos); + if (b3DFlag) + rRef.Ref1.SetFlag3D(true); } break; case svIndex: |