fix comment in crereader

This commit is contained in:
Qingping Hou
2012-04-19 10:31:38 +08:00
parent 69cea4f2af
commit c46266fee8

View File

@@ -108,7 +108,7 @@ function CREReader:goto(pos, is_ignore_jump, pos_type)
if pos_type == "xpointer" then
self.doc:gotoXPointer(pos)
pos = self.doc:getCurrentPos()
else -- pos_type is PERCENT * 100
else -- pos_type is position within document
pos = math.min(pos, self.doc:getFullHeight() - height)
pos = math.max(pos, 0)
self.doc:gotoPos(pos)