Merge pull request #2747 from romanbsd/inchi-crash-fix

Fix crash when converting some bad CML to inchi
This commit is contained in:
Geoff Hutchison 2024-12-20 19:24:53 -05:00 committed by GitHub
commit 889c350feb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2267,7 +2267,9 @@ namespace OpenBabel
int bondFlags = 0;
AddBond(atom->GetIdx(),h->GetIdx(),1, bondFlags);
h->SetCoordPtr(&_c);
if (_c) {
h->SetCoordPtr(&_c);
}
OpenBabel::ImplicitRefToStereo(*this, atom->GetId(), h->GetId());
}
}