epam / epam/Indigo

Error occurs when copying (CTRL+C) or saving as mol v3000 'Any Atom' with Isotope (Atomic Mass)

Open
#1,427 0 comments 0 reactions 1 assignee Claimed by @even1024 View on GitHub
Dominant language
C++
Stars
406
Forks
134
Avg merge
2d 11h
Merged PRs (30d)
24

Description

**Steps to Reproduce**
1. Add 'Any Atom' on canvas
2. Add Isotope (Atomic Mass) to 'Any Atom'
3. Select 'Any Atom' and press CTRL+C ( or save as mol v3000)

**Expected behavior**
The atom is copied or saved without errors

**Actual behavior**
An error pop-up appears

![2023-12-07_16h29_24](https://github.com/epam/Indigo/assets/62464241/12c045a6-5773-4438-93ed-ca839ebbd48c)

Payload:
```
{
"root": {
"nodes": [
{
"$ref": "mol0"
}
],
"connections": [],
"templates": []
},
"mol0": {
"type": "molecule",
"atoms": [
{
"label": "A",
"location": [
2.6750000000000003,
-4.075,
0
],
"isotope": 1
}
]
}
}
```

**Attachments**

![2023-12-07_16h25_06](https://github.com/epam/Indigo/assets/62464241/3c7fa78e-f654-4935-92c9-5cda76329b10)

**Indigo/Bingo version**
Version 1.16.0-rc.2

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.