https://bugs.freedesktop.org/show_bug.cgi?id=80551
Priority: medium
Bug ID: 80551
Assignee: [email protected]
Summary: uno Sheet annotations getByIndex is based on document
annotations index
Severity: normal
Classification: Unclassified
OS: All
Reporter: [email protected]
Hardware: Other
Status: UNCONFIRMED
Version: 4.2.4.2 release
Component: Spreadsheet
Product: LibreOffice
Created attachment 101785
--> https://bugs.freedesktop.org/attachment.cgi?id=101785&action=edit
macro illustrating the problem - run main()
In a macro, get the sheet annotations
the count is ok
a getByIndex(0) returns the firs note of the document, not the first note of
the sheet
expected : the returned note should be the first of the sheet.getAnnotations()
code pointers :
annotations of the sheet
http://opengrok.libreoffice.org/xref/core/sc/source/ui/unoobj/cellsuno.cxx#6937
get By index
http://opengrok.libreoffice.org/xref/core/sc/source/ui/unoobj/docuno.cxx#3617
--> here index refers to notes in table
ScAnnotationsObj::GetObjectByIndex_Impl
http://opengrok.libreoffice.org/xref/core/sc/source/ui/unoobj/docuno.cxx#3550
ScAnnotationsObj::GetAddressByIndex_Impl
http://opengrok.libreoffice.org/xref/core/sc/source/ui/unoobj/docuno.cxx#3541
--> here index refers to notes in doc
attachement : run the Main() macro contained
The 2 requested notes are not the expected one; The 0 and 1 index refer to
document annotations not to sheet annotations
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs