diff options
Diffstat (limited to 'sc/source')
-rw-r--r-- | sc/source/core/data/table6.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sc/source/core/data/table6.cxx b/sc/source/core/data/table6.cxx index 8102c783d46f..d9140ede347a 100644 --- a/sc/source/core/data/table6.cxx +++ b/sc/source/core/data/table6.cxx @@ -52,6 +52,9 @@ bool lcl_GetTextWithBreaks( const EditTextObject& rData, ScDocument* pDoc, OUStr bool ScTable::SearchCell(const SvxSearchItem& rSearchItem, SCCOL nCol, SCROW nRow, const ScMarkData& rMark, OUString& rUndoStr, ScDocument* pUndoDoc) { + if (!ValidColRow( nCol, nRow)) + return false; + bool bFound = false; bool bDoSearch = true; bool bDoBack = rSearchItem.GetBackward(); |