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: if self.debug:
print("* Deleting module: %s" % module.GetValue()) print("* Deleting module: %s" % module.GetValue())
if module.GetValue() == "AUTO_VIA": if module.GetValue() == "AUTO_VIA":
self.pcb.DeleteNative(module) self.pcb.RemoveNative(module)
self.RefillBoardAreas() self.RefillBoardAreas()
return # no need to run the rest of logic return # no need to run the rest of logic