Skip to content

Commit 95e934d

Browse files
authored
Fix error when save after deleting an RPDO in the middle of a list (#81)
1 parent 6c7edee commit 95e934d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎src/objdictgen/node.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -935,6 +935,7 @@ def RemoveLine(self, index: int, maxval: int, incr: int = 1):
935935
while i < maxval and self.IsEntry(i + incr):
936936
# FIXME: Not sure what this does
937937
self.Dictionary[i] = self.Dictionary[i + incr]
938+
self.ParamsDictionary[i] = self.ParamsDictionary.get(i + incr, {})
938939
i += incr
939940
self.Dictionary.pop(i)
940941
self.ParamsDictionary.pop(i, None)

0 commit comments

Comments
 (0)