From 310c322883911d857e5ffd32900f64386ce80fc7 Mon Sep 17 00:00:00 2001 From: Alejandro Alonso Date: Fri, 10 Jun 2022 10:27:53 +0200 Subject: [PATCH] :bug: Fix show baground on export arboards --- CHANGES.md | 1 + frontend/src/app/util/import/parser.cljs | 6 ++---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 338296b4ff..54bfb5dddb 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -13,6 +13,7 @@ ### :bug: Bugs fixed - Fix orientation artboard preset not working with differently sized artboards [Taiga #3548](https://tree.taiga.io/project/penpot/issue/3548) +- Fix background on export arboards [Taiga #1991](https://tree.taiga.io/project/penpot/issue/1991) ## 1.13.4-beta diff --git a/frontend/src/app/util/import/parser.cljs b/frontend/src/app/util/import/parser.cljs index f494827ab0..292431093f 100644 --- a/frontend/src/app/util/import/parser.cljs +++ b/frontend/src/app/util/import/parser.cljs @@ -421,7 +421,6 @@ [props node svg-data] (let [fill (:fill svg-data) - hide-fill-on-export (get-meta node :hide-fill-on-export str->bool) fill-color-ref-id (get-meta node :fill-color-ref-id uuid/uuid) fill-color-ref-file (get-meta node :fill-color-ref-file uuid/uuid) meta-fill-color (get-meta node :fill-color) @@ -455,9 +454,6 @@ (assoc :fill-color fill :fill-opacity (-> svg-data (:fill-opacity "1") d/parse-double)) - (some? hide-fill-on-export) - (assoc :hide-fill-on-export hide-fill-on-export) - (some? fill-color-ref-id) (assoc :fill-color-ref-id fill-color-ref-id :fill-color-ref-file fill-color-ref-file)))) @@ -884,6 +880,8 @@ (assoc :fills (parse-fills node svg-data)) (assoc :strokes (parse-strokes node svg-data)) + (assoc :hide-fill-on-export (get-meta node :hide-fill-on-export str->bool)) + (cond-> (= :svg-raw type) (add-svg-content node))