DocumentRegistry: Downgrade refcount warnings to debug logging.

It can happen in perfectly sane contexts.

CReDocument: Don't destroy internal engine data when Document just
decreased the refcount (as opposed to actually tore down the document
userdata if it were the last ref).

PdfDocument: Only write edited documents if the Doc instance was torn
down.

PicDocument: Silence some DocumentRegistry related warnings
This commit is contained in:
NiLuJe
2021-05-20 19:09:54 +02:00
parent 7dea979ef4
commit 2c4cbd12a2
6 changed files with 48 additions and 19 deletions

View File

@@ -22,6 +22,7 @@ function PicDocument:init()
error("Failed to open image:" .. self._document)
end
self.is_open = true
self.info.has_pages = true
self.info.configurable = false