Merge pull request #328 from tigran123/master

Mixed up unireader.toc with self.toc in the command handler.
This commit is contained in:
Dobrica Pavlinušić
2012-09-26 15:44:34 -07:00

View File

@@ -2266,7 +2266,7 @@ function UniReader:addAllCommands()
-- addJump() will cause a "Retrieving TOC..." msg, so we'll
-- need to redraw the page after our own
-- ifo msg "Already first jump!" below
if not self.toc then need_refresh = true end
if not unireader.toc then need_refresh = true end
-- if cur points to head, put current page in history
unireader:addJump(self.pageno)