summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2013-11-23 12:16:51 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-11-30 18:40:54 -0600
commit1aa9bae0ffea4b37392175197f58f26001c06c66 (patch)
tree0123bf960aae0e87d032b3504fc3b6471e08d69f /sc
parent80994001d563ffd51f008eae4eb88c6eb2b7d38b (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. (cherry picked from commit ef8e0beba442f58abe3bc77f6f55fc6109025dd4) Backported. Change-Id: I038b58f20f71ff1393dccafa3021dac02cd69e4b Reviewed-on: https://gerrit.libreoffice.org/6768 Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
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 220211c77acb..6c530d350e1a 100644
--- a/sc/source/core/data/table2.cxx
+++ b/sc/source/core/data/table2.cxx
@@ -712,7 +712,7 @@ void ScTable::CopyConditionalFormat( SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCRO
ScConditionalFormat* pNewFormat = itr->Clone(pDocument);
pNewFormat->AddRange(aIntersectedRange);
- pNewFormat->UpdateReference(URM_COPY, aNewRange, nDx, nDy, pTable->nTab - nTab, true);
+ pNewFormat->UpdateReference(URM_COPY, aNewRange, nDx, nDy, nTab - pTable->nTab, true);
sal_uLong nMax = 0;
for(ScConditionalFormatList::const_iterator itrCond = mpCondFormatList->begin();