mirror of
https://github.com/openbabel/openbabel.git
synced 2025-02-25 18:55:23 -06:00
Merge pull request #2747 from romanbsd/inchi-crash-fix
Fix crash when converting some bad CML to inchi
This commit is contained in:
commit
889c350feb
@ -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());
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user