epam / epam/Indigo

Layout action shouldn't add pluses for reactions without pluses with several reactants/products in a row

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

Description

**Steps to Reproduce**
1. Make a reaction of several corrupted chemical elements without pluses on the Canvas:
![image](https://github.com/user-attachments/assets/527212fd-cdd4-45b8-88b6-6fd89a40c62f)
2. Click on Layout

**Actual behavior**
Chemical elements are repaired and aligned relative to the arrow, but plusses are added:
![image](https://github.com/user-attachments/assets/a0e10a65-e699-4c68-b23e-d58fc8bdd4d2)

**Expected behavior**
Chemical elements are repaired and aligned relative to the arrow, no plusses are added:
![image](https://github.com/user-attachments/assets/fdf5f4bc-f823-4bc0-99d2-b2ddf75bcfac)

**Environment details:**
- Ketcher [Version 2.24.0-rc.3] Build at 2024-08-20; 13:16:59
- Indigo Version 1.23.0-rc.2.0-g6a2a7526a-wasm32-wasm-clang-19.0.0
- OS: Windows 11 Enterprise
- Browser: Chrome, Version 127.0.6533.100 (Official Build) (64-bit)

**Additional context**
- Issue is detected during the investigation of Cascade Reaction feature - https://github.com/epam/Indigo/issues/2128

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.