Code

embedimage.py patch #2 for Bug #386069
authorJazzyNico <JazzyNico@users.sourceforge.net>
Fri, 12 Jun 2009 19:17:51 +0000 (19:17 +0000)
committerJazzyNico <JazzyNico@users.sourceforge.net>
Fri, 12 Jun 2009 19:17:51 +0000 (19:17 +0000)
share/extensions/embedimage.py

index a6cef536373a98c94edefe1ee2d6438e3a73e4d2..bc3ed6a0555894ca52ec4c7da787cc62606f8c36 100644 (file)
@@ -57,6 +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]
             path=''
             #path selection strategy:
             # 1. href if absolute