summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@collabora.com>2013-10-23 18:59:09 -0400
committerKohei Yoshida <kohei.yoshida@collabora.com>2013-10-23 19:01:19 -0400
commit59585984fcede9dcfce44557b7076ed682059e1c (patch)
tree59128981aded2bd222091652de69396fc4330fad
parent5b483ed15d70bdc34b9520632ee569db0e6c4f9d (diff)
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
-rw-r--r--sc/source/core/data/document.cxx4
1 files 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