Skip to content

Commit d0e173d

Browse files
fix bounding box and UT
1 parent c582049 commit d0e173d

File tree

2 files changed

+27
-27
lines changed

2 files changed

+27
-27
lines changed

api/tests/integration/tests/layout/ref/acs_issue_2458.ket

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@
4242
"mode": "open-angle",
4343
"pos": [
4444
{
45-
"x": 9.904167,
45+
"x": 10.008333,
4646
"y": 0.0,
4747
"z": 0.0
4848
},
4949
{
50-
"x": 20.945833,
50+
"x": 21.674999,
5151
"y": 0.0,
5252
"z": 0.0
5353
}
@@ -286,8 +286,8 @@
286286
{
287287
"label": "P",
288288
"location": [
289-
10.546529,
290-
1.368056,
289+
10.668056,
290+
1.402778,
291291
0.0
292292
]
293293
}
@@ -300,8 +300,8 @@
300300
{
301301
"label": "P",
302302
"location": [
303-
12.317363,
304-
1.368056,
303+
12.543056,
304+
1.402778,
305305
0.0
306306
]
307307
}
@@ -314,7 +314,7 @@
314314
{
315315
"label": "O",
316316
"location": [
317-
9.261806,
317+
9.348611,
318318
0.0,
319319
0.0
320320
]
@@ -328,8 +328,8 @@
328328
{
329329
"label": "O",
330330
"location": [
331-
14.990974,
332-
1.368056,
331+
15.390278,
332+
1.402778,
333333
0.0
334334
]
335335
}
@@ -342,8 +342,8 @@
342342
{
343343
"label": "O",
344344
"location": [
345-
16.761808,
346-
1.368056,
345+
17.265278,
346+
1.402778,
347347
0.0
348348
]
349349
}
@@ -356,87 +356,87 @@
356356
{
357357
"label": "N",
358358
"location": [
359-
22.039583,
359+
22.820831,
360360
1.309017,
361361
0.0
362362
]
363363
},
364364
{
365365
"label": "C",
366366
"location": [
367-
22.990639,
367+
23.771889,
368368
1.0,
369369
0.0
370370
]
371371
},
372372
{
373373
"label": "C",
374374
"location": [
375-
21.451797,
375+
22.233047,
376376
0.5,
377377
0.0
378378
]
379379
},
380380
{
381381
"label": "C",
382382
"location": [
383-
22.990639,
383+
23.771889,
384384
-0.0,
385385
0.0
386386
]
387387
},
388388
{
389389
"label": "N",
390390
"location": [
391-
23.856665,
391+
24.637915,
392392
1.5,
393393
0.0
394394
]
395395
},
396396
{
397397
"label": "N",
398398
"location": [
399-
22.039583,
399+
22.820833,
400400
-0.309017,
401401
0.0
402402
]
403403
},
404404
{
405405
"label": "C",
406406
"location": [
407-
23.856665,
407+
24.637915,
408408
-0.5,
409409
0.0
410410
]
411411
},
412412
{
413413
"label": "C",
414414
"location": [
415-
24.722691,
415+
25.503941,
416416
1.0,
417417
0.0
418418
]
419419
},
420420
{
421421
"label": "N",
422422
"location": [
423-
24.722691,
423+
25.503941,
424424
0.0,
425425
0.0
426426
]
427427
},
428428
{
429429
"label": "O",
430430
"location": [
431-
23.856665,
431+
24.637915,
432432
-1.5,
433433
0.0
434434
]
435435
},
436436
{
437437
"label": "N",
438438
"location": [
439-
25.588715,
439+
26.369965,
440440
1.5,
441441
0.0
442442
]
@@ -535,8 +535,8 @@
535535
{
536536
"label": "P",
537537
"location": [
538-
17.629864,
539-
1.368056,
538+
18.168055,
539+
1.402778,
540540
0.0
541541
]
542542
}
@@ -549,8 +549,8 @@
549549
{
550550
"label": "O",
551551
"location": [
552-
20.303473,
553-
1.368056,
552+
21.015278,
553+
1.402778,
554554
0.0
555555
]
556556
}

core/indigo-core/molecule/src/base_molecule.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4535,7 +4535,7 @@ void BaseMolecule::getAtomBoundingBox(int atom_idx, float font_size, LABEL_MODE
45354535
if (font_size <= EPSILON)
45364536
return;
45374537

4538-
float symbol_size = font_size * 0.65f;
4538+
float symbol_size = font_size * 0.7f;
45394539

45404540
if (isPseudoAtom(atom_idx) || isTemplateAtom(atom_idx))
45414541
{

0 commit comments

Comments
 (0)