Fix rare bugs identified by fuzzing

This commit is contained in:
Paulo Matias
2014-01-21 16:54:22 -02:00
parent e4569debe6
commit 26283660b7
3 changed files with 7 additions and 4 deletions

View File

@@ -77,6 +77,7 @@ function ReaderFooter:init()
end
function ReaderFooter:updateFooter()
if type(self.pageno) ~= "number" then return end
self.progress_bar.percentage = self.pageno / self.pages
if self.show_time then
self.progress_text.text = os.date("%H:%M")