mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Footnote popups: fix crash when used on some links
Fix crash when dismissing the popup when the link was detected as "not coherent".
This commit is contained in:
@@ -1114,7 +1114,9 @@ function ReaderLink:showAsFootnotePopup(link, neglect_current_location)
|
||||
if not self:onTap(arg, ges) then
|
||||
-- If we did tap on another link, onTap has already cleared our
|
||||
-- highlight. If not, call close_callback to unhighlight it.
|
||||
close_callback(footnote_height)
|
||||
if close_callback then -- not set if xpointer not coherent
|
||||
close_callback(footnote_height)
|
||||
end
|
||||
end
|
||||
end,
|
||||
dialog = self.dialog,
|
||||
|
||||
Reference in New Issue
Block a user