path: root/sc/source/core/data/table3.cxx
diff options
authorEike Rathke <>2014-11-24 23:29:32 +0100
committerKohei Yoshida <>2014-11-25 15:10:38 +0000
commit094b19c2759c8ecc88b38d37047e9ac2de9b68ee (patch)
treee5eab6b2dc433364bf56ecc7b912c7526f646230 /sc/source/core/data/table3.cxx
parente44d09160038c7cf661e23885a0997d54ca01752 (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.. (cherry picked from commit f0e7364603c9566bc158303c515c3274ccba62ca) Backported. Change-Id: Ic0e61c5e1cb0728e20725c29e450ab0eb55c3305 Reviewed-on: Reviewed-by: Kohei Yoshida <> Tested-by: Kohei Yoshida <>
Diffstat (limited to 'sc/source/core/data/table3.cxx')
1 files changed, 4 insertions, 0 deletions
diff --git a/sc/source/core/data/table3.cxx b/sc/source/core/data/table3.cxx
index 99d6239a0262..e49a4dcdefbd 100644
--- a/sc/source/core/data/table3.cxx
+++ b/sc/source/core/data/table3.cxx
@@ -870,6 +870,10 @@ void ScTable::SortReorderByRow(
pNew->GetCode()->AdjustReferenceOnMovedOrigin(aOldPos, aCellPos);
+ else
+ {
+ pNew->GetCode()->AdjustReferenceOnMovedOriginIfOtherSheet(aOldPos, aCellPos);
+ }
sc::CellStoreType::iterator itBlk = rCellStore.push_back(pNew);