mirror of
https://github.com/penpot/penpot.git
synced 2026-08-01 10:56:20 +00:00
🐛 Fix problem with command
This commit is contained in:
parent
39066bfee3
commit
9fcddc37f6
@ -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…
x
Reference in New Issue
Block a user