Skip to content

Commit

Permalink
#2458 - The reaction with catalysts is displayed incorrectly with AC…
Browse files Browse the repository at this point in the history
…S style setting and after layout

Increase font bounding box. Update UT.
  • Loading branch information
AliaksandrDziarkach committed Nov 15, 2024
1 parent 23bb80b commit c582049
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 27 deletions.
52 changes: 26 additions & 26 deletions api/tests/integration/tests/layout/ref/acs_issue_2458.ket
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@
"mode": "open-angle",
"pos": [
{
"x": 9.8,
"x": 9.904167,
"y": 0.0,
"z": 0.0
},
{
"x": 20.216667,
"x": 20.945833,
"y": 0.0,
"z": 0.0
}
Expand Down Expand Up @@ -286,8 +286,8 @@
{
"label": "P",
"location": [
10.425,
1.333333,
10.546529,
1.368056,
0.0
]
}
Expand All @@ -300,8 +300,8 @@
{
"label": "P",
"location": [
12.091667,
1.333333,
12.317363,
1.368056,
0.0
]
}
Expand All @@ -314,7 +314,7 @@
{
"label": "O",
"location": [
9.175,
9.261806,
0.0,
0.0
]
Expand All @@ -328,8 +328,8 @@
{
"label": "O",
"location": [
14.591668,
1.333333,
14.990974,
1.368056,
0.0
]
}
Expand All @@ -342,8 +342,8 @@
{
"label": "O",
"location": [
16.258335,
1.333333,
16.761808,
1.368056,
0.0
]
}
Expand All @@ -356,87 +356,87 @@
{
"label": "N",
"location": [
21.258333,
22.039583,
1.309017,
0.0
]
},
{
"label": "C",
"location": [
22.209391,
22.990639,
1.0,
0.0
]
},
{
"label": "C",
"location": [
20.670547,
21.451797,
0.5,
0.0
]
},
{
"label": "C",
"location": [
22.209391,
22.990639,
-0.0,
0.0
]
},
{
"label": "N",
"location": [
23.075417,
23.856665,
1.5,
0.0
]
},
{
"label": "N",
"location": [
21.258333,
22.039583,
-0.309017,
0.0
]
},
{
"label": "C",
"location": [
23.075417,
23.856665,
-0.5,
0.0
]
},
{
"label": "C",
"location": [
23.941441,
24.722691,
1.0,
0.0
]
},
{
"label": "N",
"location": [
23.941441,
24.722691,
0.0,
0.0
]
},
{
"label": "O",
"location": [
23.075415,
23.856665,
-1.5,
0.0
]
},
{
"label": "N",
"location": [
24.807467,
25.588715,
1.5,
0.0
]
Expand Down Expand Up @@ -535,8 +535,8 @@
{
"label": "P",
"location": [
17.091669,
1.333333,
17.629864,
1.368056,
0.0
]
}
Expand All @@ -549,8 +549,8 @@
{
"label": "O",
"location": [
19.591667,
1.333333,
20.303473,
1.368056,
0.0
]
}
Expand Down
2 changes: 1 addition & 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,7 @@ void BaseMolecule::getAtomBoundingBox(int atom_idx, float font_size, LABEL_MODE
if (font_size <= EPSILON)
return;

float symbol_size = font_size * 0.6f;
float symbol_size = font_size * 0.65f;

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

0 comments on commit c582049

Please sign in to comment.