readerfooter(minor): just incase self.pages is nil

This commit is contained in:
Qingping Hou committed 2016-04-20 23:12:07 -07:00
1 parent 572412b1f6
commit 0226efc4cd
2 files changed
+2 -2

No files matched your search

+1 -1
Submodule base updated: b5c82144e2...02c4e24e73.
@@ -295,7 +295,7 @@ function ReaderFooter:updateFooterText()
if #ticks_candidates > 0 then
self.progress_bar.ticks = ticks_candidates[1]
self.progress_bar.last = self.pages
self.progress_bar.last = self.pages or self.view.document:getPageCount()
else
-- we still set ticks here so self.progress_bar.ticks will not be
-- initialized again if ticks_candidates is empty