summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@collabora.co.uk>2014-12-07 05:14:10 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2014-12-07 05:42:14 +0100
commit6c8ada4d81b5ff06c98b238e016b183fdca05c0b (patch)
treee0824d0cfb51d525ebd214498818759beb63a274
parentc634ef6d9613eb1847636876f701f66070c7ccb7 (diff)
we need the original context that contains the data, fdo#85856
Change-Id: I107201ab736b548f010d813540e0a9cec7402e79
-rw-r--r--sc/source/core/data/documen2.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sc/source/core/data/documen2.cxx b/sc/source/core/data/documen2.cxx
index 404dd3143587..02e19929871a 100644
--- a/sc/source/core/data/documen2.cxx
+++ b/sc/source/core/data/documen2.cxx
@@ -882,9 +882,8 @@ bool ScDocument::CopyTab( SCTAB nOldPos, SCTAB nNewPos, const ScMarkData* pOnlyM
aRefCxt.mnTabDelta = nDz;
maTabs[nNewPos]->UpdateReference(aRefCxt, NULL);
- sc::RefUpdateInsertTabContext aInsTabCxt(nNewPos, 1);
maTabs[nNewPos]->UpdateInsertTabAbs(nNewPos); // move all paragraphs up by one!!
- maTabs[nOldPos]->UpdateInsertTab(aInsTabCxt);
+ maTabs[nOldPos]->UpdateInsertTab(aCxt);
maTabs[nOldPos]->UpdateCompile();
maTabs[nNewPos]->UpdateCompile( true ); // maybe already compiled in Clone, but used names need recompilation