item: increase parent length only if parentSub=null

This commit is contained in:
Kevin Jahns 2018-12-03 23:09:59 +01:00
parent 582095e5a3
commit 3d70eee959

View File

@ -441,7 +441,7 @@ export class Item {
}
}
// adjust the length of parent
if (parent.length !== undefined && this._countable) {
if (parentSub === null && parent.length !== undefined && this._countable) {
parent.length += this._length
}
if (parent._deleted) {