Fix delete: Delete should not be called from python script since undo/redo action should use deleted element. Use Remove instead.

This commit is contained in:
Jean-Samuel Reynaud
2017-06-13 09:34:12 +02:00
parent b529f54905
commit bc022af6e1

View File

@ -219,7 +219,7 @@ class FillArea:
if self.debug:
print("* Deleting module: %s" % module.GetValue())
if module.GetValue() == "AUTO_VIA":
self.pcb.DeleteNative(module)
self.pcb.RemoveNative(module)
self.RefillBoardAreas()
return # no need to run the rest of logic