diff options
Diffstat (limited to 'sc/source/core/data/table6.cxx')
-rw-r--r-- | sc/source/core/data/table6.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sc/source/core/data/table6.cxx b/sc/source/core/data/table6.cxx index d983a55889cc..636ca5629592 100644 --- a/sc/source/core/data/table6.cxx +++ b/sc/source/core/data/table6.cxx @@ -571,10 +571,14 @@ bool ScTable::ReplaceAll( else GetLastDataPos(nLastCol, nLastRow); + // tdf#92160 - columnular replace is faster, and more memory efficient. + SvxSearchItem aCopyItem(rSearchItem); + aCopyItem.SetRowDirection(false); + bool bEverFound = false; while (true) { - bool bFound = Search(rSearchItem, nCol, nRow, nLastCol, nLastRow, rMark, rUndoStr, pUndoDoc); + bool bFound = Search(aCopyItem, nCol, nRow, nLastCol, nLastRow, rMark, rUndoStr, pUndoDoc); if (bFound) { |