[Okular-devel] [Bug 286776] Table of Contents (ToC) highlight does not link to current page.

Albert Astals Cid tsdgeos at terra.es
Wed Nov 16 16:25:30 UTC 2011


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





--- Comment #3 from Albert Astals Cid <tsdgeos terra es>  2011-11-16 16:25:30 ---
I've just ran evince and to be honest I am not sure its implementation is
really better than ours. This is how my sample document is organized. It has
200 pages, and each 2 pages there is a toc item for it, i.e.
Page 1 has a Toc item Named 1
Page 3 has a Toc item Named 2
Page 5 has a Toc item Named 3
etc.
So this is what i do and what the toc bar in evince shows.
 - Open the document on page 1.
   * Toc item Named 1 is selected
 - Scroll down to page 2
   * Toc item Named 1 is still selected
 - Scroll down to page 3
   * Toc item Named 2 is selected
 - Scroll up to page 2
   * Toc item Named 2 is still selected  <-- First inconsistency, why on page 2
it was Toc item 1 before and toc item 2 now?
 - Use the toolbar to go to page 100 (which has no toc item associated, pages
99 and 101 have)
   * Toc item Named 2 is still selected  <-- Second inconsistency

As you see going to pages with no toc item associated creates what i think is
inconsistent behaviour in evince.

Now let's compare with what we do in Okular (take only into account the green
arrow, since the blue highlight is about user interaction):

 - Open the document on page 1.
   * Toc item Named 1 gets the green arrow
 - Scroll down to page 2
   * Green arrow is not shown
 - Scroll down to page 3
   * Toc item Named 2 gets the green arrow
 - Scroll up to page 2
   * Green arrow is not shown
 - Use the toolbar to go to page 100 (which has no toc item associated, pages
99 and 101 have)
   * Green arrow is not shown

Personally i think this is a more sensible behaviour.

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Okular-devel mailing list