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:
@@ -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
|
||||
|
Reference in New Issue
Block a user