Fixed return of no meta data
This commit is contained in:
+1
-1
@@ -206,7 +206,7 @@ class NWDoc():
|
|||||||
"""
|
"""
|
||||||
if len(self.docMeta) < 14:
|
if len(self.docMeta) < 14:
|
||||||
# Not enough information
|
# Not enough information
|
||||||
return "", []
|
return "", [], None, None
|
||||||
|
|
||||||
theMeta = self.docMeta
|
theMeta = self.docMeta
|
||||||
|
|
||||||
|
|||||||
@@ -1081,6 +1081,11 @@ class NWProject():
|
|||||||
nOrph += 1
|
nOrph += 1
|
||||||
oName = "Orphaned File %d" % nOrph
|
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 = NWItem(self)
|
||||||
orphItem.setName(oName)
|
orphItem.setName(oName)
|
||||||
orphItem.setType(nwItemType.FILE)
|
orphItem.setType(nwItemType.FILE)
|
||||||
|
|||||||
Reference in New Issue
Block a user