credocument: fix setupDefaultView already loaded check (#16030)

This commit is contained in:
Benoit Pierre authored and GitHub committed 2026-09-08 07:13:59 +02:00
1 parent 9ed0d2fbd1
commit 0840237f4b
1 file changed
+1 -1
+1 -1
View File
@@ -222,7 +222,7 @@ function CreDocument:setAltDocumentProp(prop, value)
end
function CreDocument:setupDefaultView()
if self.loaded then
if self._loaded then
-- Don't apply defaults if the document has already been loaded
-- as this must be done before calling loadDocument()
return