mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 18:54:09 -04:00
Avoid a rare error when calculating CFI
This commit is contained in:
parent
b6c3253fb9
commit
e8b21b2f29
@ -585,6 +585,8 @@ def at_point(ox, oy): # {{{
|
||||
except Exception:
|
||||
cfi = None
|
||||
|
||||
if not p:
|
||||
return None
|
||||
|
||||
if cfi:
|
||||
if p.range is not None:
|
||||
|
Loading…
x
Reference in New Issue
Block a user