Code

embedimage.py patch #3 for Bug #386069
authorJazzyNico <JazzyNico@users.sourceforge.net>
Sat, 13 Jun 2009 05:13:17 +0000 (05:13 +0000)
committerJazzyNico <JazzyNico@users.sourceforge.net>
Sat, 13 Jun 2009 05:13:17 +0000 (05:13 +0000)
share/extensions/embedimage.py

index bc3ed6a0555894ca52ec4c7da787cc62606f8c36..f7f0d81d5a0e74611fe5c747eb2e6ac2f9a7d481 100644 (file)
@@ -57,8 +57,8 @@ class Embedder(inkex.Effect):
             absref=node.get(inkex.addNS('absref','sodipodi'))
             url=urlparse.urlparse(xlink)
             href=url.path
-            if os.name == 'nt' and href[1:1] == '/':
-                href = href[3:0]
+            if os.name == 'nt' and href[0] == '/':
+                href = href[3:]
             path=''
             #path selection strategy:
             # 1. href if absolute