From: bryce Date: Thu, 7 Feb 2008 09:31:39 +0000 (+0000) Subject: Patch from Tom Davidson to add a check for absref tag before deleting it X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=5ab5e83b30bb98a525e6f50f731fc7e21d372d97;p=inkscape.git Patch from Tom Davidson to add a check for absref tag before deleting it (Closes LP: #169104) --- diff --git a/share/extensions/embedimage.py b/share/extensions/embedimage.py index 75400aebb..06281a4b0 100644 --- a/share/extensions/embedimage.py +++ b/share/extensions/embedimage.py @@ -94,7 +94,8 @@ class Embedder(inkex.Effect): embed=False if (embed): node.set(inkex.addNS('href','xlink'), 'data:%s;base64,%s' % (type, base64.encodestring(file))) - del node.attrib[inkex.addNS('absref',u'sodipodi')] + if (absref != None): + del node.attrib[inkex.addNS('absref',u'sodipodi')] else: inkex.debug("%s is not of type image/png, image/jpeg, image/bmp, image/gif or image/x-icon" % path) else: