mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Geom: nil guard a few rect methods (#7664)
We've managed to trip a few of those on dimen fields post-init but pre-paintTo in a few weird coner-cases, a point at which dimen is often nil. ConfigDialog: Deal with that very thing in update() Fix #7656
This commit is contained in:
@@ -9,7 +9,7 @@ describe("device module", function()
|
||||
mock_fb = {
|
||||
new = function()
|
||||
return {
|
||||
getSize = function() return {w = 600, h = 800} end,
|
||||
getRawSize = function() return {w = 600, h = 800} end,
|
||||
getWidth = function() return 600 end,
|
||||
getDPI = function() return 72 end,
|
||||
setViewport = function() end,
|
||||
|
||||
Reference in New Issue
Block a user