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

fix start/end atoms when wedging bonds #2861

Merged
merged 1 commit into from
Dec 27, 2019

Conversation

greglandrum
Copy link
Member

WedgeMolBonds() currently happily sets wedges on bonds where the chiral atom controlling the bond's wedging is not the start atom. This is, of course, wrong and leads to things like this:
image

The fix, borrowing some logic from the mol file writer, is straightforward.

Unfortunately rather a lot of formatting changes made it in here too. The substantive changes are at line 45 of MolFileStereochem.cpp

@greglandrum greglandrum added this to the 2019_09_3 milestone Dec 19, 2019
@bp-kelley bp-kelley merged commit ab061d5 into rdkit:master Dec 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants