diff options
author | Eike Rathke <erack@redhat.com> | 2016-07-27 19:00:11 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2016-07-27 19:00:47 +0200 |
commit | 156590e7c0bf3c81f50b3d9862961e50010ea08a (patch) | |
tree | 71fe85f8ce76e3dffaf09c3f6d5a5300f452e0c8 /sc | |
parent | 5f65ca15a2297f298536d07cfa8564a1f7c67abb (diff) |
use GetCellArea() also in SearchAll() and ReplaceAll(), tdf#65334 follow-up
Change-Id: I50bfeee96e57010455bbb9e8be4312a39d392411
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/data/table6.cxx | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/sc/source/core/data/table6.cxx b/sc/source/core/data/table6.cxx index 121d1d20ff7d..15135f956115 100644 --- a/sc/source/core/data/table6.cxx +++ b/sc/source/core/data/table6.cxx @@ -473,7 +473,10 @@ bool ScTable::SearchAll(const SvxSearchItem& rSearchItem, const ScMarkData& rMar SCCOL nLastCol; SCROW nLastRow; - GetLastDataPos(nLastCol, nLastRow); + if (rSearchItem.GetCellType() == SvxSearchCellType::NOTE) + GetCellArea( nLastCol, nLastRow); + else + GetLastDataPos(nLastCol, nLastRow); do { @@ -532,7 +535,10 @@ bool ScTable::ReplaceAll( SCCOL nLastCol; SCROW nLastRow; - GetLastDataPos(nLastCol, nLastRow); + if (rSearchItem.GetCellType() == SvxSearchCellType::NOTE) + GetCellArea( nLastCol, nLastRow); + else + GetLastDataPos(nLastCol, nLastRow); bool bEverFound = false; while (true) |