mirror of
https://github.com/rdkit/rdkit.git
synced 2026-06-06 22:39:55 +08:00
@@ -115,6 +115,11 @@ bool query_needs_rings(const ROMol &in_query) {
|
||||
if (atom->hasQuery()) {
|
||||
if (describeQuery(atom).find("Ring") != std::string::npos) {
|
||||
return true;
|
||||
} else if (atom->getQuery()->getDescription() == "RecursiveStructure") {
|
||||
auto *rsq = (RecursiveStructureQuery *)atom->getQuery();
|
||||
if (query_needs_rings(*rsq->getQueryMol())) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user