From 8e0807d502f023cf97b86adad9ae4e0a87700d8e Mon Sep 17 00:00:00 2001 From: "alonso.torres" Date: Fri, 5 Nov 2021 13:00:32 +0100 Subject: [PATCH] :bug: Fix problem when flattening booleans losing styles --- CHANGES.md | 1 + common/src/app/common/path/shapes_to_path.cljc | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 81e908a699..09854aa9f2 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -19,6 +19,7 @@ - Disallow to create a component when already has one [Taiga #2237](https://tree.taiga.io/project/penpot/issue/2237). - Add ellipsis in long labels for input fields [Taiga #2224](https://tree.taiga.io/project/penpot/issue/2224) - Fix problem with text rendering on export [Taiga #2223](https://tree.taiga.io/project/penpot/issue/2223) +- Fix problem when flattening booleans losing styles [Taiga #2217](https://tree.taiga.io/project/penpot/issue/2217) ### :arrow_up: Deps updates ### :heart: Community contributions by (Thank you!) diff --git a/common/src/app/common/path/shapes_to_path.cljc b/common/src/app/common/path/shapes_to_path.cljc index d2f9059141..b95437d52c 100644 --- a/common/src/app/common/path/shapes_to_path.cljc +++ b/common/src/app/common/path/shapes_to_path.cljc @@ -182,13 +182,11 @@ (and (contains? head :svg-attrs) (nil? (:fill-color head))) (assoc :fill-color "#000000")) - head-data (select-keys head style-properties) content (pb/content-bool (:bool-type shape) (mapv :content children))] (-> shape (assoc :type :path) (assoc :content content) - (merge head-data) (d/without-keys dissoc-attrs)))) (defn convert-to-path