From 5bc8e6e7c1c015216f0d8b386d4d632fdad1b1d7 Mon Sep 17 00:00:00 2001 From: Mario Voigt Date: Mon, 11 Oct 2021 12:07:40 +0200 Subject: [PATCH] small adjustment in export selection as --- .../fablabchemnitz/export_selection_as/export_selection_as.inx | 2 +- .../fablabchemnitz/export_selection_as/export_selection_as.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/extensions/fablabchemnitz/export_selection_as/export_selection_as.inx b/extensions/fablabchemnitz/export_selection_as/export_selection_as.inx index 82a6070e..be0f65e2 100644 --- a/extensions/fablabchemnitz/export_selection_as/export_selection_as.inx +++ b/extensions/fablabchemnitz/export_selection_as/export_selection_as.inx @@ -14,7 +14,7 @@ false false 96 - false + false false diff --git a/extensions/fablabchemnitz/export_selection_as/export_selection_as.py b/extensions/fablabchemnitz/export_selection_as/export_selection_as.py index d8baaa39..92cb76bc 100644 --- a/extensions/fablabchemnitz/export_selection_as/export_selection_as.py +++ b/extensions/fablabchemnitz/export_selection_as/export_selection_as.py @@ -262,7 +262,8 @@ class ExportObject(inkex.EffectExtension): imgReplacement.attrib['id'] = firstId imgReplacement.attrib['{http://www.w3.org/1999/xlink}href'] = "data:image/png;base64,{}".format(base64_str) parent.append(imgReplacement) - del parent.attrib['transform'] #remove transform + if parent.attrib.has_key('transform'): + del parent.attrib['transform'] #remove transform def create_document(self):