From 63115a7c0fbf16c5034eaa24806eed5fa5287128 Mon Sep 17 00:00:00 2001 From: blitzmann Date: Sun, 28 Oct 2018 21:07:12 -0400 Subject: [PATCH] Recalc fit after removing implants (and undoing removal) --- gui/fitCommands/guiRemoveImplant.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gui/fitCommands/guiRemoveImplant.py b/gui/fitCommands/guiRemoveImplant.py index af9ee74bc..876421e7a 100644 --- a/gui/fitCommands/guiRemoveImplant.py +++ b/gui/fitCommands/guiRemoveImplant.py @@ -17,6 +17,7 @@ class GuiRemoveImplantCommand(wx.Command): def Do(self): if self.internal_history.Submit(FitRemoveImplantCommand(self.fitID, self.position)): + self.sFit.recalc(self.fitID) wx.PostEvent(self.mainFrame, GE.FitChanged(fitID=self.fitID)) return True return False @@ -24,5 +25,6 @@ class GuiRemoveImplantCommand(wx.Command): def Undo(self): for _ in self.internal_history.Commands: self.internal_history.Undo() + self.sFit.recalc(self.fitID) wx.PostEvent(self.mainFrame, GE.FitChanged(fitID=self.fitID)) return True