Fixed return of no meta data

This commit is contained in:
Veronica K. B. Olsen committed 2020-06-12 17:22:48 +02:00
1 parent 66c8931ece
commit ad0ccf8a56
2 files changed
+6 -1

No files matched your search

+1 -1
View File
@@ -206,7 +206,7 @@ class NWDoc():
"""
if len(self.docMeta) < 14:
# Not enough information
return "", []
return "", [], None, None
theMeta = self.docMeta
+5
View File
@@ -1081,6 +1081,11 @@ class NWProject():
nOrph += 1
oName = "Orphaned File %d" % nOrph
if oClass is None:
oClass = nwItemClass.NO_CLASS
if oLayout is None:
oLayout = nwItemLayout.NO_LAYOUT
orphItem = NWItem(self)
orphItem.setName(oName)
orphItem.setType(nwItemType.FILE)