From d09ba5362b77808040254c109df44b3e6c45382d Mon Sep 17 00:00:00 2001 From: Lex Neva Date: Wed, 2 May 2018 20:09:52 -0400 Subject: [PATCH] handle case where no palette is used --- embroider_print.py | 2 +- print/templates/ui.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/embroider_print.py b/embroider_print.py index ee9193a87..5895bc515 100644 --- a/embroider_print.py +++ b/embroider_print.py @@ -377,7 +377,7 @@ class Print(InkstitchExtension): svg_overview = overview_svg, color_blocks = stitch_plan.color_blocks, palettes = ThreadCatalog().palette_names(), - selected_palette = palette.name, + selected_palette = palette, ) # We've totally mucked with the SVG. Restore it so that we can save diff --git a/print/templates/ui.html b/print/templates/ui.html index 112a342ef..b09dc9414 100644 --- a/print/templates/ui.html +++ b/print/templates/ui.html @@ -42,7 +42,7 @@ {% endif %} {% for palette in palettes %} - + {% endfor %}