Skip to content

Commit

Permalink
fix bounding box and UT
Browse files Browse the repository at this point in the history
  • Loading branch information
AliaksandrDziarkach committed Nov 15, 2024
1 parent c582049 commit d0e173d
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.904167,
"x": 10.008333,
"y": 0.0,
"z": 0.0
},
{
"x": 20.945833,
"x": 21.674999,
"y": 0.0,
"z": 0.0
}
Expand Down Expand Up @@ -286,8 +286,8 @@
{
"label": "P",
"location": [
10.546529,
1.368056,
10.668056,
1.402778,
0.0
]
}
Expand All @@ -300,8 +300,8 @@
{
"label": "P",
"location": [
12.317363,
1.368056,
12.543056,
1.402778,
0.0
]
}
Expand All @@ -314,7 +314,7 @@
{
"label": "O",
"location": [
9.261806,
9.348611,
0.0,
0.0
]
Expand All @@ -328,8 +328,8 @@
{
"label": "O",
"location": [
14.990974,
1.368056,
15.390278,
1.402778,
0.0
]
}
Expand All @@ -342,8 +342,8 @@
{
"label": "O",
"location": [
16.761808,
1.368056,
17.265278,
1.402778,
0.0
]
}
Expand All @@ -356,87 +356,87 @@
{
"label": "N",
"location": [
22.039583,
22.820831,
1.309017,
0.0
]
},
{
"label": "C",
"location": [
22.990639,
23.771889,
1.0,
0.0
]
},
{
"label": "C",
"location": [
21.451797,
22.233047,
0.5,
0.0
]
},
{
"label": "C",
"location": [
22.990639,
23.771889,
-0.0,
0.0
]
},
{
"label": "N",
"location": [
23.856665,
24.637915,
1.5,
0.0
]
},
{
"label": "N",
"location": [
22.039583,
22.820833,
-0.309017,
0.0
]
},
{
"label": "C",
"location": [
23.856665,
24.637915,
-0.5,
0.0
]
},
{
"label": "C",
"location": [
24.722691,
25.503941,
1.0,
0.0
]
},
{
"label": "N",
"location": [
24.722691,
25.503941,
0.0,
0.0
]
},
{
"label": "O",
"location": [
23.856665,
24.637915,
-1.5,
0.0
]
},
{
"label": "N",
"location": [
25.588715,
26.369965,
1.5,
0.0
]
Expand Down Expand Up @@ -535,8 +535,8 @@
{
"label": "P",
"location": [
17.629864,
1.368056,
18.168055,
1.402778,
0.0
]
}
Expand All @@ -549,8 +549,8 @@
{
"label": "O",
"location": [
20.303473,
1.368056,
21.015278,
1.402778,
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.65f;
float symbol_size = font_size * 0.7f;

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

0 comments on commit d0e173d

Please sign in to comment.