From b11a57692204af664dbda282ad497ace3a36922a Mon Sep 17 00:00:00 2001 From: DarkPhoenix Date: Wed, 1 May 2019 17:59:59 +0300 Subject: [PATCH] Fix an oversight which led to charges not unloading when replacing module --- gui/fitCommands/calc/module/localReplace.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/fitCommands/calc/module/localReplace.py b/gui/fitCommands/calc/module/localReplace.py index dbdc30b6f..7524f74ce 100644 --- a/gui/fitCommands/calc/module/localReplace.py +++ b/gui/fitCommands/calc/module/localReplace.py @@ -45,7 +45,7 @@ class CalcReplaceLocalModuleCommand(wx.Command): pyfalog.warning('Module does not fit') self.Undo() return False - if not not self.ignoreRestrictions and not newMod.isValidCharge(newMod.charge): + if not self.ignoreRestrictions and not newMod.isValidCharge(newMod.charge): if self.unloadInvalidCharges: newMod.charge = None self.unloadedCharge = True