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

--- Comment #5 from miklos <mtm...@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.
_______________________________________________
Okular-devel mailing list
Okular-devel@kde.org
https://mail.kde.org/mailman/listinfo/okular-devel

Reply via email to