Kaydet (Commit) 99b06e60 authored tarafından Eike Rathke's avatar Eike Rathke

CID#736182 guard against a dubious call from SearchAndReplace()

Change-Id: I6ce1b577c377721b882c1f8ec757a61e600ae671
üst a2212cef
...@@ -516,6 +516,11 @@ bool ScTable::SearchStyle(const SvxSearchItem& rSearchItem, SCCOL& rCol, SCROW& ...@@ -516,6 +516,11 @@ bool ScTable::SearchStyle(const SvxSearchItem& rSearchItem, SCCOL& rCol, SCROW&
if (bRows) // zeilenweise if (bRows) // zeilenweise
{ {
if (!ValidCol(nCol))
{
SAL_WARN( "sc.core", "SearchStyle: bad column " << nCol);
return false;
}
nRow += nAdd; nRow += nAdd;
do do
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment