When failing, we need to return an invalid address.

ScAddress() gets initialized to a valid address of col=0,row=0,tab=0.

Change-Id: I9f12b4b2329e2c9907b9c8113371d963fc06f442
This commit is contained in:
Kohei Yoshida
2013-10-23 18:59:09 -04:00
parent 5b483ed15d
commit 59585984fc

View File

@@ -6177,12 +6177,12 @@ ScAddress ScDocument::GetNotePosition( size_t nIndex ) const
return ScAddress(nCol, nRow, nTab);
OSL_FAIL("note not found");
return ScAddress();
return ScAddress(ScAddress::INITIALIZE_INVALID);
}
}
OSL_FAIL("note not found");
return ScAddress();
return ScAddress(ScAddress::INITIALIZE_INVALID);
}
SCROW ScDocument::GetNotePosition( SCTAB nTab, SCCOL nCol, size_t nIndex ) const