Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Structure appears distorted after saving and reopening in MOL V2000 format #4785

Closed
Zhirnoff opened this issue Jun 6, 2024 · 2 comments
Closed
Assignees
Labels
bug Macro-Micro Bucket: Macro-Micro View related issues Priority: Medium

Comments

@Zhirnoff
Copy link
Collaborator

Zhirnoff commented Jun 6, 2024

Description:
When saving a chemical structure in MOL V2000 format and then reopening file, structure appears distorted. The carbon atom in the ring with attachment point is highlighted in red, and additional annotations or modifications appear incorrectly.

Steps to Reproduce

  1. Open Ketcher.
  2. Draw a benzene ring
  3. Add an attachment point to the benzene ring via right click menu
  4. Switch to Macro mode and connect attachment point to a macro structure
  5. Switch to Micro mode
  6. Save structure in MOLV2000 format
  7. Reopen saved file in micro mode

Actual behavior
Upon reopening, structure appears distorted, as shown in attached screenshots. The carbon atom is highlighted in red, and the structure includes unexpected annotations and modifications.
2024-06-06_14h59_06

2024-06-06_14h59_23.mp4

Expected behavior
The structure should appear same as it was before saving, without any distortions or unexpected modifications.
2024-06-06_14h02_50

Attached saved file:

ketcherv2000.zip

Desktop (please complete the following information):

  • OS: Windows 11
  • Browser Chrome
  • Version 124.0.6367.79 (Official Build) (64-bit)

Ketcher version
[Version 2.22.0-rc.2]

Refers to feature: #4530

@Zhirnoff Zhirnoff added bug Priority: Medium Macro-Micro Bucket: Macro-Micro View related issues labels Jun 6, 2024
@Zhirnoff Zhirnoff added this to the Ketcher 2.22.0-rc.3 milestone Jun 6, 2024
@rrodionov91 rrodionov91 self-assigned this Jun 7, 2024
rrodionov91 added a commit that referenced this issue Jun 7, 2024
… V2000 format

- fixed saving superatoms with attachment points without labels in molV2000
- partially fixed saving monomers to molV2000
@rrodionov91
Copy link
Collaborator

fixed in #4973

@AlexeyGirin
Copy link
Collaborator

Fixed.
image

  • Ketcher Version 2.23.0-rc.3 Build at 2024-07-31; 05:31:01
  • Indigo Toolkit Version 1.23.0-dev.2.1-gd93b8ec4-wasm32-wasm-clang-12.0.0
  • Windows 10 Pro
  • Chrome Version 127.0.6533.89 (Official Build) (64-bit)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Macro-Micro Bucket: Macro-Micro View related issues Priority: Medium
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants