Skip to content

Commit 01aff51

Browse files
authored
[Common] fixed computation of output quality for ReferenceComparatorCheck (#2389)
In the current code the output quality was always Null because the initial Null value is always not better than any other quality from the plots analysis.
1 parent 98fca14 commit 01aff51

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Modules/Common/src/ReferenceComparatorCheck.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,8 +210,8 @@ Quality ReferenceComparatorCheck::check(std::map<std::string, std::shared_ptr<Mo
210210
continue;
211211
}
212212

213-
// update the overall quality
214-
if (quality.isWorseThan(result)) {
213+
// initialize or update the overall quality
214+
if (result == Quality::Null || quality.isWorseThan(result)) {
215215
result.set(quality);
216216
}
217217

0 commit comments

Comments
 (0)