Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed a bug that C.ar was converted to C3 when reading mol2 files #2558

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/formats/mol2format.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,10 @@ namespace OpenBabel
mol.AddBond(start, end, order, flags);
}

// Suggestion by Liu Zhiguo 2008-01-26
// Mol2 files define atom types -- there is no need to re-perceive
mol.SetAtomTypesPerceived();

// TODO: Add a test case for the statement below of Paolo Tosco
// - I am currently assuming that is not a problem for the
// the current kekulization code, but it needs to be
Expand Down Expand Up @@ -550,10 +554,6 @@ namespace OpenBabel

mol.EndModify();

// Suggestion by Liu Zhiguo 2008-01-26
// Mol2 files define atom types -- there is no need to re-perceive
mol.SetAtomTypesPerceived();

if (has_residue_information)
mol.SetChainsPerceived();

Expand Down