cleanup readerui init for pdf

This commit is contained in:
chrox
2014-02-16 20:57:36 +08:00
parent 0eee130f5a
commit 1b55339186
2 changed files with 23 additions and 21 deletions

View File

@@ -400,8 +400,9 @@ function ReaderPaging:getTopPage()
end
function ReaderPaging:onInitScrollPageStates(orig)
--DEBUG.traceback()
DEBUG("init scroll page states", orig)
if self.view.page_scroll then
if self.view.page_scroll and self.view.state.page then
self.orig_page = self.current_page
self.view.page_states = {}
local blank_area = Geom:new{}
@@ -734,6 +735,7 @@ end
-- wrapper for bounds checking
function ReaderPaging:gotoPage(number, orig)
--DEBUG.traceback()
if number == self.current_page or not number then
return true
end