fix crash when highlighting text in EPUB documents

Since the new Screen:getSize modthod returns a regular table
instead of a Geom which is set to the dimen field of readerview,
there is no copy method in the dimen field. And we don't need to
copy dimen any more since the result won't be modified. Even the
screen page area somehow needs to be modified, the caller of this
function should make a copy of that variable by itself.
This commit is contained in:
chrox
2014-11-25 11:02:33 +08:00
parent 9ef2c91103
commit 548e830fdc

View File

@@ -223,7 +223,7 @@ function ReaderView:getScreenPageArea(page)
return area
end
else
return self.dimen:copy()
return self.dimen
end
end