document: fix another background_cleanup check (#15648)

Cf. https://github.com/koreader/koreader/pull/15644#issuecomment-4901852542.
This commit is contained in:
Benoit Pierre authored and GitHub committed 2026-07-08 12:55:51 +02:00
1 parent 0d5a2724a5
commit cc63764721
1 file changed
+1 -1
+1 -1
View File
@@ -508,7 +508,7 @@ function Document:renderPage(pageno, rect, zoom, rotation, gamma, saturation, hi
dc:setSaturation(saturation)
end
dc:setBackgroundCleanup(self.configurable.background_cleanup ~= 0)
dc:setBackgroundCleanup((self.configurable.background_cleanup or 0) ~= 0)
-- And finally, render the page in our BB
local page = self._document:openPage(pageno)