summaryrefslogtreecommitdiff
path: root/gerbonara
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2023-07-17 23:23:00 +0200
committerjaseg <git@jaseg.de>2023-07-17 23:23:00 +0200
commit860fa4c53bb7d599c98e7913377b3d5aa24fea8e (patch)
tree9e8828d3a923919a0319d21fb1e80e75d0d28c12 /gerbonara
parentb2729a46ac36402b30e567b02f8e67caefed7ac9 (diff)
downloadgerbonara-860fa4c53bb7d599c98e7913377b3d5aa24fea8e.tar.gz
gerbonara-860fa4c53bb7d599c98e7913377b3d5aa24fea8e.tar.bz2
gerbonara-860fa4c53bb7d599c98e7913377b3d5aa24fea8e.zip
LayerStack: Fix issue SVG rendering lazy-loaded stacks
Diffstat (limited to 'gerbonara')
-rw-r--r--gerbonara/layers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gerbonara/layers.py b/gerbonara/layers.py
index daed004..858dbe4 100644
--- a/gerbonara/layers.py
+++ b/gerbonara/layers.py
@@ -828,7 +828,7 @@ class LayerStack:
warnings.warn(f'Layer "{side} {use}" not found. Found layers: {", ".join(side + " " + use for side, use in self.graphic_layers)}')
continue
- layer = self[(side, use)]
+ layer = self[(side, use)].instance
fg, bg = ('white', 'black') if use != 'mask' else ('black', 'white')
default_fill = {'copper': fg, 'mask': fg, 'silk': 'none', 'paste': fg}[use]