From bc022af6e1b49ecca02d1ca8d5c3d54ffa1ce3fa Mon Sep 17 00:00:00 2001 From: Jean-Samuel Reynaud Date: Tue, 13 Jun 2017 09:34:12 +0200 Subject: [PATCH] Fix delete: Delete should not be called from python script since undo/redo action should use deleted element. Use Remove instead. --- ViaStitching/FillArea.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ViaStitching/FillArea.py b/ViaStitching/FillArea.py index 1fabd6a..dd2f5f1 100755 --- a/ViaStitching/FillArea.py +++ b/ViaStitching/FillArea.py @@ -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