sc/source/core/tool/token.cxx | 14 ++++++++++++++ 1 file changed, 14 insertions(+)
New commits: commit 5e397250c0ab2c092091c6dfe30d906a17fdca9e Author: Eike Rathke <er...@redhat.com> Date: Thu Nov 17 22:13:19 2016 +0100 Resolves: tdf#103994 AdjustReferenceOnMove: handle external references Change-Id: I8b104b0c843dd268d8760a2a73cdd3e672e6efd6 (cherry picked from commit 4665be3af48587505bb7f49a53e8422945ec49eb) Reviewed-on: https://gerrit.libreoffice.org/30941 Tested-by: Jenkins <c...@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrh...@googlemail.com> diff --git a/sc/source/core/tool/token.cxx b/sc/source/core/tool/token.cxx index 28fdcad..9ce7673 100644 --- a/sc/source/core/tool/token.cxx +++ b/sc/source/core/tool/token.cxx @@ -3216,6 +3216,20 @@ sc::RefUpdateResult ScTokenArray::AdjustReferenceOnMove( rRef.Ref1.SetFlag3D(true); } break; + case svExternalSingleRef: + { + ScSingleRefData& rRef = *p->GetSingleRef(); + ScAddress aAbs = rRef.toAbs(rOldPos); + rRef.SetAddress(aAbs, rNewPos); + } + break; + case svExternalDoubleRef: + { + ScComplexRefData& rRef = *p->GetDoubleRef(); + ScRange aAbs = rRef.toAbs(rOldPos); + rRef.SetRange(aAbs, rNewPos); + } + break; default: ; } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits