counting notes is per table, not on the whole document

Change-Id: Id4afa4eee961f159f8ea8caeac620d101cfb103e
Reviewed-on: https://gerrit.libreoffice.org/6941
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
This commit is contained in:
Laurent Godard
2013-12-05 07:53:05 -06:00
committed by Markus Mohrhard
parent e697cd8f82
commit b561d6ef7d
+4 -1
View File
@@ -3605,7 +3605,10 @@ sal_Int32 SAL_CALL ScAnnotationsObj::getCount() throw(uno::RuntimeException)
if (pDocShell)
{
ScDocument* pDoc = pDocShell->GetDocument();
nCount = pDoc->CountNotes();
const ScRangeList aRangeList( ScRange( 0, 0, nTab, MAXCOL, MAXROW, nTab) );
std::vector<sc::NoteEntry> rNotes;
pDoc->GetNotesInRange(aRangeList, rNotes);
nCount = rNotes.size();
}
return nCount;
}