summaryrefslogtreecommitdiff
path: root/sc
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:37:29 +0100
commitef8e0beba442f58abe3bc77f6f55fc6109025dd4 (patch)
tree3041d4096896cdf001fc9e41c5fdb132e7175422 /sc
parentb7a8fc55854bbd7b977783e76e9a19354d0e74a6 (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
Diffstat (limited to 'sc')
-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;