From 860fa4c53bb7d599c98e7913377b3d5aa24fea8e Mon Sep 17 00:00:00 2001 From: jaseg Date: Mon, 17 Jul 2023 23:23:00 +0200 Subject: LayerStack: Fix issue SVG rendering lazy-loaded stacks --- gerbonara/layers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gerbonara') 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] -- cgit