Skip to content

Commit

Permalink
Use the labelCoords to centre fragment abbreviations.
Browse files Browse the repository at this point in the history
  • Loading branch information
johnmay committed Jun 15, 2016
1 parent c7df5df commit d4464be
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,7 @@ private IRenderingElement generateAbbreviationSgroup(IAtomContainer mol, Sgroup

ElementGroup labelgroup = new ElementGroup();
for (Shape outline : atomGenerator.generateAbbreviatedSymbol(label, HydrogenPosition.Right)
.center(labelCoords.x, labelCoords.y)
.resize(1 / scale, 1 / -scale)
.getOutlines()) {
if (highlight != null && style == StandardGenerator.HighlightStyle.Colored) {
Expand Down

0 comments on commit d4464be

Please sign in to comment.