diff --git a/src/hyspecppt/hppt/hppt_view_validators.py b/src/hyspecppt/hppt/hppt_view_validators.py index 42c6fa2..66701ac 100644 --- a/src/hyspecppt/hppt/hppt_view_validators.py +++ b/src/hyspecppt/hppt/hppt_view_validators.py @@ -100,7 +100,7 @@ def validate(self, input_text: str, pos: int) -> tuple[QValidator.State, str, in # check the conditions if angle_sum > 360 or ( - alpha_beta_sum < gamma_value or alpha_gamma_sum < beta_value or beta_gamma_sum < alpha_value + alpha_beta_sum <= gamma_value or alpha_gamma_sum <= beta_value or beta_gamma_sum <= alpha_value ): return QValidator.Intermediate, field_input, field_pos else: