https://bugs.documentfoundation.org/show_bug.cgi?id=99997

            Bug ID: 99997
           Summary: XPageCursor reports incorrect page numbers and
                    xFootnotesSupplier.getFootnotes() empty (unless
                    document is refreshed via XRefreshable)
           Product: LibreOffice
           Version: 5.1.2.2 release
          Hardware: x86-64 (AMD64)
                OS: Linux (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: sdk
          Assignee: [email protected]
          Reporter: [email protected]

Created attachment 125237
  --> https://bugs.documentfoundation.org/attachment.cgi?id=125237&action=edit
attached a document with footnotes (it can be used to reproduce the problem)

So, if a document is not refreshed(via the usual way with XRefreshable, I'm
specifically talking about the Writer application, because that's where
this situation was found), two things happen:
a) The page numbers reported by XPageCursor are off(confirmed on both 5.1.2.2
and 4.2.8.2)
b) The footnotes are not loaded at all (confirmed on 4.2.8.2). In effect, on a
XSearchable search they do not show up in the results, but if the document is
refreshed prior to doing the search, they show up just fine.

My suggestion is that either this should be specifically mentioned in the
documentation and reflected in the UNO API examples or it should not be
required for a user to refresh the document, and it should happen implicitly as
part of the UNO API default behaviour.

I view this as the intuitive way of solving this problem.
I look forward to your thoughts on this.
Thank you for taking the time to read the bug report

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to