From 022ce777ebd30ee64744e097c7ac9236b1b8bc51 Mon Sep 17 00:00:00 2001 From: Aliaksandr Dziarkach <18146690+AliaksandrDziarkach@users.noreply.github.com> Date: Mon, 18 Nov 2024 13:38:04 +0300 Subject: [PATCH] Add constant --- core/indigo-core/molecule/src/base_molecule.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/indigo-core/molecule/src/base_molecule.cpp b/core/indigo-core/molecule/src/base_molecule.cpp index c5a4a3c7e2..0551198ded 100644 --- a/core/indigo-core/molecule/src/base_molecule.cpp +++ b/core/indigo-core/molecule/src/base_molecule.cpp @@ -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)) {