summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Dufour <nicoduf@yahoo.fr>2012-11-16 06:52:31 +0000
committerJazzyNico <nicoduf@yahoo.fr>2012-11-16 06:52:31 +0000
commit6f23c503d35fedae0ee8cdda017f88763a05828a (patch)
treea40ff4632c2e547934b3a601a59d234f0d1e31c2
parentbuild files.wxs within install.bat (diff)
downloadinkscape-6f23c503d35fedae0ee8cdda017f88763a05828a.tar.gz
inkscape-6f23c503d35fedae0ee8cdda017f88763a05828a.zip
Extensions. Fix for Bug #1075321 (TypeError: decoding Unicode is not supported) by Aapo Rantalainen.
(bzr r11877)
-rwxr-xr-xshare/extensions/embedimage.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/share/extensions/embedimage.py b/share/extensions/embedimage.py
index 159c3c152..bdc15bde2 100755
--- a/share/extensions/embedimage.py
+++ b/share/extensions/embedimage.py
@@ -75,8 +75,11 @@ class Embedder(inkex.Effect):
if (absref != None):
path=absref
- path=unicode(path, "utf-8")
-
+ try:
+ path=unicode(path, "utf-8")
+ except TypeError:
+ path=path
+
if (not os.path.isfile(path)):
inkex.errormsg(_('No xlink:href or sodipodi:absref attributes found, or they do not point to an existing file! Unable to embed image.'))
if path: