[Okular-devel] [okular] [Bug 342076] The marker for the current section only shows up for the first page of a chapter

miklos mtmkls at freemail.hu
Sun Dec 21 22:35:00 UTC 2014


https://bugs.kde.org/show_bug.cgi?id=342076

--- Comment #5 from miklos <mtmkls at freemail.hu> ---
If you can generate the TOC tree, and you can jump to specific pages when a TOC
element is clicked, you have a sorted representation of the document structure.
You just need to find the TOC element that points to the highest page number
that is lower or equal than the currently displayed page. Add the marker to
that TOC element, if visible, to its parent, if not (use a recursion). If
multiple TOC elements point to the same page, select the first one
(deterministically).

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Okular-devel mailing list