summaryrefslogtreecommitdiff
path: root/sc/source/core/data/table3.cxx
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2014-11-17 22:44:56 +0100
committerKohei Yoshida <libreoffice@kohei.us>2014-11-25 15:09:23 +0000
commite44d09160038c7cf661e23885a0997d54ca01752 (patch)
tree5a755e136dc83b680a46ee90a5e07aa0a0c9565a /sc/source/core/data/table3.cxx
parent1f0bca308e677a3e7a75837f93f14b679f698846 (diff)
fdo#83765 do not update references in SortReorderByColumn() if disabled
Similar to SortReorderByRow() (cherry picked from commit 115a4b7ca36f65d93070d2e81048320d202e87a3) Conflicts: sc/inc/column.hxx Change-Id: I2d2fe243c91a663b14e5bd75ee30225d1b8073da Reviewed-on: https://gerrit.libreoffice.org/13117 Reviewed-by: Kohei Yoshida <libreoffice@kohei.us> Tested-by: Kohei Yoshida <libreoffice@kohei.us>
Diffstat (limited to 'sc/source/core/data/table3.cxx')
-rw-r--r--sc/source/core/data/table3.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/core/data/table3.cxx b/sc/source/core/data/table3.cxx
index d6466784f7ac..99d6239a0262 100644
--- a/sc/source/core/data/table3.cxx
+++ b/sc/source/core/data/table3.cxx
@@ -716,8 +716,9 @@ void ScTable::SortReorderByColumn(
}
// Reset formula cell positions which became out-of-sync after column reordering.
+ bool bUpdateRefs = pArray->IsUpdateRefs();
for (SCCOL nCol = nStart; nCol <= nLast; ++nCol)
- aCol[nCol].ResetFormulaCellPositions(nRow1, nRow2);
+ aCol[nCol].ResetFormulaCellPositions(nRow1, nRow2, bUpdateRefs);
// Set up column reorder map (for later broadcasting of reference updates).
sc::ColRowReorderMapType aColMap;