From 1b54f07ce0d7d8a75c7f1a7963a2b85b679c1ea5 Mon Sep 17 00:00:00 2001 From: DarkPhoenix Date: Thu, 11 Apr 2019 12:36:41 +0300 Subject: [PATCH] Fix small but significant oversight --- gui/fitCommands/calc/fitAddImplant.py | 2 +- gui/fitCommands/calc/fitAddProjectedModule.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gui/fitCommands/calc/fitAddImplant.py b/gui/fitCommands/calc/fitAddImplant.py index f2838efeb..3ebbfab24 100644 --- a/gui/fitCommands/calc/fitAddImplant.py +++ b/gui/fitCommands/calc/fitAddImplant.py @@ -33,7 +33,7 @@ class FitAddImplantCommand(wx.Command): pyfalog.warning("Invalid item: {0}", self.newItemID) return False implant.active = self.newState - + self.oldItemID, self.oldState = fit.implants.makeRoom(implant) fit.implants.append(implant) self.newIndex = fit.implants.index(implant) diff --git a/gui/fitCommands/calc/fitAddProjectedModule.py b/gui/fitCommands/calc/fitAddProjectedModule.py index 984b676b0..d75aafc4b 100644 --- a/gui/fitCommands/calc/fitAddProjectedModule.py +++ b/gui/fitCommands/calc/fitAddProjectedModule.py @@ -43,7 +43,7 @@ class FitAddProjectedModuleCommand(wx.Command): self.oldModuleInfo = ModuleInfoCache(oldPosition, oldItemID, oldState, oldChargeID, oldBaseItemID, oldMutaplasmidID, oldMutations) if self.newPosition is not None: - fit.projectedModules.append(self.newPosition, mod) + fit.projectedModules.insert(self.newPosition, mod) else: fit.projectedModules.append(mod) self.newPosition = fit.projectedModules.index(mod)