credoc fix: load metadata info after document is rendered

pull/79/head
Qingping Hou 11 years ago
parent b011bc405b
commit 1783b16d69

@ -101,6 +101,9 @@ end
function CreDocument:loadDocument()
self._document:loadDocument(self.file)
if not self.info.has_pages then
self.info.doc_height = self._document:getFullHeight()
end
end
function CreDocument:drawCurrentView(target, x, y, rect, pos)

@ -112,9 +112,6 @@ end
function Document:_readMetadata()
self.info.number_of_pages = self._document:getPages()
if not self.info.has_pages then
self.info.doc_height = self._document:getFullHeight()
end
return true
end

Loading…
Cancel
Save