mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Fix for the crash when deleting highlights, see issue #295.
This commit is contained in:
@@ -1958,7 +1958,6 @@ function UniReader:showHighLight()
|
||||
if #self.highlight[hpage] == 0 then
|
||||
table.remove(self.highlight, hpage)
|
||||
end
|
||||
table.remove(highlight_page, item_no)
|
||||
table.remove(menu_items, item_no)
|
||||
if #menu_items == 0 then
|
||||
return self:redrawCurrentPage()
|
||||
|
||||
Reference in New Issue
Block a user