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