credoc fix: load metadata info after document is rendered

This commit is contained in:
Qingping Hou
2013-04-21 05:54:20 +08:00
parent b011bc405b
commit 1783b16d69
2 changed files with 3 additions and 3 deletions

View File

@@ -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)