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:
committed by
Markus Mohrhard
parent
e697cd8f82
commit
b561d6ef7d
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user