All test cases passing
This commit is contained in:
@@ -219,12 +219,18 @@ void diagram::get_parents(
|
||||
bool found_new{false};
|
||||
for (const auto &parent : parents) {
|
||||
for (const auto &pp : parent.get().parents()) {
|
||||
LOG_DBG("=-=-=-=-=-=-= {} HAS PARENT {} [{}]",
|
||||
parent.get().full_name(false), pp.name(), pp.id());
|
||||
auto p = get_class(pp.id());
|
||||
|
||||
if (p.has_value()) {
|
||||
auto [it, found] = parents.emplace(std::ref(p.value()));
|
||||
if (found)
|
||||
found_new = true;
|
||||
}
|
||||
else {
|
||||
LOG_DBG("=-=-=-=-=-=-= {} NOT FOUND IN DIAGRAM", pp.id());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user