Skip to content

Commit

Permalink
Add constant
Browse files Browse the repository at this point in the history
  • Loading branch information
AliaksandrDziarkach committed Nov 18, 2024
1 parent 9c8f4a9 commit 022ce77
Showing 1 changed file with 3 additions and 1 deletion.
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 @@ -4538,7 +4538,9 @@ void BaseMolecule::getAtomBoundingBox(int atom_idx, float font_size, LABEL_MODE
if (font_size <= EPSILON)
return;

float symbol_size = font_size * 0.7f;
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 022ce77

Please sign in to comment.