summaryrefslogtreecommitdiff
path: root/sc/source/core/data/table3.cxx
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2014-11-24 23:29:32 +0100
committerEike Rathke <erack@redhat.com>2014-11-25 03:27:39 +0100
commit36d53e879e7a2571ebae7d755b7e5aacf76c4d55 (patch)
treeb1d2221a5439777dcbeb2fc8b9e9ca6d94db1667 /sc/source/core/data/table3.cxx
parent39d853f29dc6787d74921ee9caaaa111e6afef19 (diff)
fix fdo#79441 again and keep references to other sheets during sort
... also if other references are not updated. References to other sheets are never to be treated as relative during sort, they are always absolute, even if they have relative row/column part references. Broken again during the big sort mess. Even if there was a unit test, which didn't help as it got disabled / adapted to the change.. Change-Id: Ic0e61c5e1cb0728e20725c29e450ab0eb55c3305 (cherry picked from commit f0e7364603c9566bc158303c515c3274ccba62ca)
Diffstat (limited to 'sc/source/core/data/table3.cxx')
-rw-r--r--sc/source/core/data/table3.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/sc/source/core/data/table3.cxx b/sc/source/core/data/table3.cxx
index 1111160d4314..227dfab8b5b9 100644
--- a/sc/source/core/data/table3.cxx
+++ b/sc/source/core/data/table3.cxx
@@ -868,6 +868,10 @@ void ScTable::SortReorderByRow(
pNew->CopyAllBroadcasters(*rCell.maCell.mpFormula);
pNew->GetCode()->AdjustReferenceOnMovedOrigin(aOldPos, aCellPos);
}
+ else
+ {
+ pNew->GetCode()->AdjustReferenceOnMovedOriginIfOtherSheet(aOldPos, aCellPos);
+ }
rCellStore.push_back(pNew);
}