Skip to content

Commit

Permalink
Merge branch 'release/1.26' into bugfix/2519-fix-default-bond-length
Browse files Browse the repository at this point in the history
  • Loading branch information
AliaksandrDziarkach authored Nov 18, 2024
2 parents cbf8347 + 82292ca commit 7f61766
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions api/tests/integration/tests/layout/ref/acs_issue_2458.ket
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
},
{
"x": 19.916666,

"y": 0.0,
"z": 0.0
}
Expand Down
4 changes: 3 additions & 1 deletion core/indigo-core/molecule/src/base_molecule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4535,7 +4535,9 @@ void BaseMolecule::getAtomBoundingBox(int atom_idx, float font_size, LABEL_MODE
if (font_size <= EPSILON)
return;

float symbol_size = font_size * 0.6f;
float constexpr WIDTH_FACTOR = 0.7f; // width of font symbols

float symbol_size = font_size * WIDTH_FACTOR;

if (isPseudoAtom(atom_idx) || isTemplateAtom(atom_idx))
{
Expand Down

0 comments on commit 7f61766

Please sign in to comment.