mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -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:
|
except Exception:
|
||||||
cfi = None
|
cfi = None
|
||||||
|
|
||||||
|
if not p:
|
||||||
|
return None
|
||||||
|
|
||||||
if cfi:
|
if cfi:
|
||||||
if p.range is not None:
|
if p.range is not None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user