From 59585984fcede9dcfce44557b7076ed682059e1c Mon Sep 17 00:00:00 2001 From: Kohei Yoshida Date: Wed, 23 Oct 2013 18:59:09 -0400 Subject: 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 --- sc/source/core/data/document.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sc/source/core/data/document.cxx b/sc/source/core/data/document.cxx index 30c92563b7fa..ccf7d32c9dda 100644 --- a/sc/source/core/data/document.cxx +++ b/sc/source/core/data/document.cxx @@ -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 -- cgit