summaryrefslogtreecommitdiff
path: root/sc/source/core/data/conditio.cxx
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2013-07-30 11:45:37 -0400
committerKohei Yoshida <kohei.yoshida@gmail.com>2013-07-30 23:50:02 -0400
commit441e70aee90e83a9f8782a3f84482db86b857b87 (patch)
tree29182ad4d4f1ed6bff9439953341dc2061cf920e /sc/source/core/data/conditio.cxx
parent5a1960f5ea9f225fda493df746e5674e3bd1cce9 (diff)
Adjust named range references on sheet move.
Change-Id: I3b20f79d9c2f373c93a34ccdb308c6d5c09f69e7
Diffstat (limited to 'sc/source/core/data/conditio.cxx')
-rw-r--r--sc/source/core/data/conditio.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/sc/source/core/data/conditio.cxx b/sc/source/core/data/conditio.cxx
index 56d697ef543c..cf86e8145214 100644
--- a/sc/source/core/data/conditio.cxx
+++ b/sc/source/core/data/conditio.cxx
@@ -592,15 +592,16 @@ void ScConditionEntry::UpdateReference( UpdateRefMode eUpdateRefMode,
void ScConditionEntry::UpdateMoveTab( SCTAB nOldPos, SCTAB nNewPos )
{
+ sc::RefUpdateMoveTabContext aCxt(nOldPos, nNewPos);
if (pFormula1)
{
- pFormula1->AdjustReferenceOnMovedTab(nOldPos, nNewPos, aSrcPos);
+ pFormula1->AdjustReferenceOnMovedTab(aCxt, aSrcPos);
DELETEZ(pFCell1);
}
if (pFormula2)
{
- pFormula2->AdjustReferenceOnMovedTab(nOldPos, nNewPos, aSrcPos);
+ pFormula2->AdjustReferenceOnMovedTab(aCxt, aSrcPos);
DELETEZ(pFCell2);
}
}