Viewer: Highlight jumps to wrong page

Bug #1944433 reported by ownedbycats
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
calibre
Fix Released
Undecided
Unassigned

Bug Description

Calibre 5.27* (x64, run from source)

Attached is an ePub (with embedded annotations) that I've been having a weird issue with.

I have a few lines highlighted; according to the json the start_cfi is /2/4/4/8/22/1:5018 and the end_cfi is /2/4/4/8/22/1:5248.

If I'm in paged mode, clicking on the highlight in the browser takes me to the page before my highlight. This seems to happen at any font size, though I didn't try changing the font itself.

Switching to flow mode took me to the right place.

Here are things I've tried so far:

- Removing and re-creating the highlight.
- Changing the window size.
- Docking the highlights panel in different locations and undocking it entirely.
- Using FanFicFare to re-download the story.
- Examining the story's HTML (the only oddity I see is that <br/> tags are used in place of proper paragraphs).

None of these have worked. This problem only exists on this specific ePub; adding another highlight in a different location of the ePub also has the same issue of it being offset to the page before. I can't figure out if this is a problem with the ePub or whether Calibre is misbehaving with it.

Thanks for looking into it.

Revision history for this message
ownedbycats (ownedbycats) wrote :
Revision history for this message
Kovid Goyal (kovid) wrote : Fixed in master

Fixed in branch master. The fix will be in the next release. calibre is usually released every alternate Friday.

 status fixreleased

Changed in calibre:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers