Fix for the crash when deleting highlights, see issue #295.

This commit is contained in:
Tigran Aivazian
2012-09-19 23:34:16 +01:00
parent f7c0166fb2
commit e5c859059d

View File

@@ -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()