mirror of
https://github.com/penpot/penpot.git
synced 2025-05-12 21:56:37 +02:00
🐛 Fix problem with command
This commit is contained in:
parent
39066bfee3
commit
9fcddc37f6
2 changed files with 7 additions and 2 deletions
|
@ -8,6 +8,11 @@
|
||||||
### :boom: Breaking changes
|
### :boom: Breaking changes
|
||||||
### :heart: Community contributions by (Thank you!)
|
### :heart: Community contributions by (Thank you!)
|
||||||
|
|
||||||
|
## 1.5.2-alpha
|
||||||
|
|
||||||
|
### :bug: Bugs fixed
|
||||||
|
|
||||||
|
- Fix problem with `close-path` command [#917](https://github.com/penpot/penpot/issues/917)
|
||||||
|
|
||||||
## 1.5.1-alpha
|
## 1.5.1-alpha
|
||||||
|
|
||||||
|
|
|
@ -51,9 +51,9 @@
|
||||||
content (get-in state (st/get-path state :content))
|
content (get-in state (st/get-path state :content))
|
||||||
selected-point? #(gsh/has-point-rect? selrect %)
|
selected-point? #(gsh/has-point-rect? selrect %)
|
||||||
selected-points (get-in state [:workspace-local :edit-path id :selected-points])
|
selected-points (get-in state [:workspace-local :edit-path id :selected-points])
|
||||||
|
|
||||||
positions (into (if shift? selected-points #{})
|
positions (into (if shift? selected-points #{})
|
||||||
(comp (map (comp gpt/point :params))
|
(comp (filter #(not (= (:command %) :close-path)))
|
||||||
|
(map (comp gpt/point :params))
|
||||||
(filter selected-point?))
|
(filter selected-point?))
|
||||||
content)]
|
content)]
|
||||||
(cond-> state
|
(cond-> state
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue