mirror of
https://github.com/penpot/penpot.git
synced 2025-06-06 01:51:36 +02:00
🐛 Fix merge path nodes with only one node selected (#6248)
This commit is contained in:
parent
43535ae573
commit
97c24c8b9c
2 changed files with 10 additions and 7 deletions
|
@ -19,6 +19,7 @@
|
||||||
- Fix long file names being clipped when longer than allowed length [Taiga #10662](https://tree.taiga.io/project/penpot/issue/10662)
|
- Fix long file names being clipped when longer than allowed length [Taiga #10662](https://tree.taiga.io/project/penpot/issue/10662)
|
||||||
- Fix problem with error detail in toast [Taiga #10519](https://tree.taiga.io/project/penpot/issue/10519)
|
- Fix problem with error detail in toast [Taiga #10519](https://tree.taiga.io/project/penpot/issue/10519)
|
||||||
- Fix view mode error when an external user tries to export something from a prototype using a shared link [Taiga #10251](https://tree.taiga.io/project/penpot/issue/10251)
|
- Fix view mode error when an external user tries to export something from a prototype using a shared link [Taiga #10251](https://tree.taiga.io/project/penpot/issue/10251)
|
||||||
|
- Fix merge path nodes with only one node selected [Taiga #9626](https://tree.taiga.io/project/penpot/issue/9626)
|
||||||
|
|
||||||
## 2.6.1
|
## 2.6.1
|
||||||
|
|
||||||
|
|
|
@ -449,11 +449,13 @@
|
||||||
(defn merge-nodes
|
(defn merge-nodes
|
||||||
"Reduces the contiguous segments in points to a single point"
|
"Reduces the contiguous segments in points to a single point"
|
||||||
[content points]
|
[content points]
|
||||||
(let [point->merge-point (-> content
|
(let [segments (get-segments content points)]
|
||||||
(get-segments points)
|
(if (seq segments)
|
||||||
(group-segments)
|
(let [point->merge-point (-> segments
|
||||||
(calculate-merge-points points))]
|
(group-segments)
|
||||||
(-> content
|
(calculate-merge-points points))]
|
||||||
(separate-nodes points)
|
(-> content
|
||||||
(replace-points point->merge-point))))
|
(separate-nodes points)
|
||||||
|
(replace-points point->merge-point)))
|
||||||
|
content)))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue