diff options
author | Eike Rathke <erack@redhat.com> | 2015-07-07 12:30:02 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2015-07-07 12:40:36 +0200 |
commit | 3ddaeaab37d585971e376de6ad7b0f06f55f2e1a (patch) | |
tree | be54b5910dc2ed631255125005789443923d4389 | |
parent | 369ee0b1faf79f1bd23c75ee04dd0dcc5bf283af (diff) |
call ScTokenArray::AdjustReferenceOnCopy() in ScFormulaCell clone, tdf#92468
Change-Id: I0dc0c3528b35bc6ea2525bafb94d72ee65e4791a
-rw-r--r-- | sc/source/core/data/formulacell.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sc/source/core/data/formulacell.cxx b/sc/source/core/data/formulacell.cxx index fad80e4676b3..ec9b4ff6d549 100644 --- a/sc/source/core/data/formulacell.cxx +++ b/sc/source/core/data/formulacell.cxx @@ -850,6 +850,9 @@ ScFormulaCell::ScFormulaCell( const ScFormulaCell& rCell, ScDocument& rDoc, cons pCode->AdjustAbsoluteRefs( rCell.pDocument, rCell.aPos, aPos, false, bCopyBetweenDocs ); } + if (!pDocument->IsClipOrUndo()) + pCode->AdjustReferenceOnCopy( aPos); + if ( nCloneFlags & SC_CLONECELL_ADJUST3DREL ) pCode->ReadjustRelative3DReferences( rCell.aPos, aPos ); |