Viewer: Highlight jumps to wrong page
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.
Fixed in branch master. The fix will be in the next release. calibre is usually released every alternate Friday.
status fixreleased