diff options
author | Eike Rathke <erack@redhat.com> | 2014-10-30 17:51:28 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2014-10-30 19:05:35 +0100 |
commit | 5ecd416c011557ce663edd52a5bc95e991fb3b84 (patch) | |
tree | 9b4f64b02a00f7c60cf682d6fcf05044d9bf525c /sc/source | |
parent | 34c725d3fdf95841df43910715f61db980783bca (diff) |
CID#736090 Improper use of negative value
Change-Id: Ice6d473d56b16ca53a046888f38d0c570d4b3828
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(); |