0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-21 06:16:28 -05:00

🐛 Fix stroke color change

This commit is contained in:
Eva Marco 2025-01-30 12:56:44 +01:00
parent eac18afa0c
commit 8db9f27809
2 changed files with 10 additions and 0 deletions

View file

@ -9,6 +9,7 @@
- Consolidate adding share button to workspace
- Fix problem when pasting text [Taiga #9929](https://tree.taiga.io/project/penpot/issue/9929)
- Fix incorrect media reference handling on component instantiation
- Fix stroke color change with a simple color over old library color [Taiga #9963](https://tree.taiga.io/project/penpot/issue/9963)
## 2.4.2

View file

@ -251,6 +251,14 @@
(contains? attrs :file-id)
(assoc :stroke-color-ref-file (:file-id attrs))
;; These nils will be remove before updating the shape
;; but old refs to library colors will be removed as well
(not (contains? attrs :id))
(assoc :stroke-color-ref-id nil)
(not (contains? attrs :file-id))
(assoc :stroke-color-ref-file nil)
(contains? attrs :gradient)
(assoc :stroke-color-gradient (:gradient attrs))
@ -279,6 +287,7 @@
(not (contains? new-attrs :stroke-alignment))
(assoc :stroke-alignment :center)
;; Nils added to clean library colors are removed here
:always
(d/without-nils))]
(cond-> shape