Invert boolean logic when checking for unique edges

This commit is contained in:
gvolfing 2023-02-08 12:57:21 +01:00
parent 657279949a
commit 096d1ce5f4

View File

@ -1341,7 +1341,7 @@ bool IsExpansionOk(Frame &frame, const Symbol &expand_symbol, const std::vector<
return std::ranges::all_of(previous_symbols,
[&frame, &expand_value = frame[expand_symbol]](const auto &previous_symbol) {
const auto &previous_value = frame[previous_symbol];
return ContainsSameEdge(previous_value, expand_value);
return !ContainsSameEdge(previous_value, expand_value);
});
}