Save a few table indexing operations since we already have the page number.

This commit is contained in:
Tigran Aivazian
2012-09-15 23:32:56 +01:00
parent 56f4ac42bd
commit 51ccc20845

View File

@@ -1802,7 +1802,7 @@ function UniReader:showToc()
showInfoMsgWithDelay("External links unsupported", 1500, 1)
self.toc_curitem = ret_code
else
return self:gotoTocEntry(self.toc[self.toc_curidx_to_x[ret_code]])
return self:goto(pagenum)
end
elseif item_no then -- expand or collapse item
local abs_item_no = math.abs(item_no)