* fixes bug where quality checker for compensations would not check properly for state surface sums
This commit is contained in:
2023-02-23 12:02:50 +01:00
parent d600ab1d59
commit fb2900aa74
2 changed files with 3 additions and 4 deletions

View File

@@ -30,10 +30,8 @@ class CompensationQualityChecker(AbstractQualityChecker):
"""
after_states = self.obj.get_surface_after_states()
before_states = self.obj.get_surface_before_states()
sum_after_states_surface = self.obj.get_surface_after_states()
sum_before_states_surface = self.obj.get_surface_before_states()
if sum_after_states_surface != sum_before_states_surface:
if after_states != before_states:
self.messages.append(
_("States unequal")
)