mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
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:
@@ -223,7 +223,7 @@ function ReaderView:getScreenPageArea(page)
|
||||
return area
|
||||
end
|
||||
else
|
||||
return self.dimen:copy()
|
||||
return self.dimen
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user