Molecule with 0 coordinates in MOL V2000 is displayed incorrectly on Canvas after loading
- Dominant language
- C++
- Stars
- 406
- Forks
- 134
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 24
Description
**Steps to Reproduce Case 1 - Reactions**
1. Add to Canvas a molecule:

2. Save to MOL V2000 and MOL V3000
3. Open MOL document and manually change coordinates to 0.0000:

Example of files with changed coordinates for RXN V2000, V3000:
[!mol-v2000-0-coordinates.zip](https://github.com/user-attachments/files/17148362/mol-v2000-0-coordinates.zip)
[!mol-v3000-0-coordinates.zip](https://github.com/user-attachments/files/17148366/mol-v3000-0-coordinates.zip)
4. Add MOL files to Canvas
**Actual behavior**
- Molecule is added incorrectly from MOL V2000, user need to click on Layout or Clean Up to see Cyclobutane:

- Pay attention that it works correctly for adding from MOL V3000:

**Expected behavior**
- Element with 0 coordinates can be added from MOL V2000 and MOL V3000 and displayed correctly:

**Additional Context for separate molecules**
- Pay attention that it works correctly for separate molecules with 0 coordinates in MOL V3000:
**Environment details**
- Tested on RC SA env
- Ketcher [Version 2.25.0-rc.5] Build at 2024-09-24; 18:17:25
- Indigo Version Version 1.24.0-rc.4.0-gdf51dc428-wasm32-wasm-clang-19.0.0
- Desktop Windows 11 Enterprise
- Chrome Version 129.0.6668.70 (Official Build) (64-bit)
**Notes**
- The fix also should be tested for RDF - to load as RDF, add $RDFILE to the top line of RXN document with reaction;
- Issue can be related to this defect - https://github.com/epam/Indigo/issues/2431
- Issue is detected during exploratory testing of Load from RDF feature, but it's an existing issue and not related to new changes - https://github.com/epam/Indigo/issues/2102
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the attached MOL V2000 and V3000 reaction cases on the Canvas, then compare their loading behavior for zero coordinates. Verify that both formats display the cyclobutane correctly without requiring Layout or Clean Up, and repeat the check for RDF as noted.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- wasm
- Domain
- computer-graphics
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100