sc/source/ui/unoobj/docuno.cxx |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

New commits:
commit b561d6ef7d03f6d940d01367110f595deec7475c
Author: Laurent Godard <lgodard.li...@laposte.net>
Date:   Thu Dec 5 12:04:31 2013 +0100

    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.mohrh...@googlemail.com>
    Reviewed-by: Markus Mohrhard <markus.mohrh...@googlemail.com>

diff --git a/sc/source/ui/unoobj/docuno.cxx b/sc/source/ui/unoobj/docuno.cxx
index 56cd857..54f40d0 100644
--- a/sc/source/ui/unoobj/docuno.cxx
+++ b/sc/source/ui/unoobj/docuno.cxx
@@ -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;
 }
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to