summaryrefslogtreecommitdiff
path: root/sc/source/core/data
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2013-11-23 12:16:51 +0100
committerEike Rathke <erack@redhat.com>2013-11-23 12:39:37 +0100
commit7c1aa21e95e9eae2fbac78c3061ed1be3c70d103 (patch)
treeb7fd545d74e01131043844e125cbac4807e40e7e /sc/source/core/data
parent4dd1f85094620506317dafc223d38e6c392b6599 (diff)
resolved fdo#61946 use correct TabDelta for UpdateReference
The sheet delta was reverted resulting in the references not being updated when conditional formats were copy-pasted between sheets. Saved to .ods then was an identical calcext:target-range-address as for the copied source range. Change-Id: I038b58f20f71ff1393dccafa3021dac02cd69e4b (cherry picked from commit ef8e0beba442f58abe3bc77f6f55fc6109025dd4)
Diffstat (limited to 'sc/source/core/data')
-rw-r--r--sc/source/core/data/table2.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/data/table2.cxx b/sc/source/core/data/table2.cxx
index b44122ef5e80..29e10c90d09f 100644
--- a/sc/source/core/data/table2.cxx
+++ b/sc/source/core/data/table2.cxx
@@ -599,7 +599,7 @@ void ScTable::CopyConditionalFormat( SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCRO
aRefCxt.maRange = aNewRange;
aRefCxt.mnColDelta = nDx;
aRefCxt.mnRowDelta = nDy;
- aRefCxt.mnTabDelta = pTable->nTab - nTab;
+ aRefCxt.mnTabDelta = nTab - pTable->nTab;
pNewFormat->UpdateReference(aRefCxt, true);
sal_uLong nMax = 0;