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:
NiLuJe
2021-05-13 13:05:05 +02:00
committed by GitHub
parent a3575134af
commit bb65a69193
6 changed files with 47 additions and 27 deletions

View File

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