index e57c7566dae00809d91427365c9c92b3cdeef52a..bc5ae4030bc1fc39231f95ee622bc3b477c2ae37 100644 (file)
#!/usr/bin/env python
'''
-Copyright (C) 2005 Aaron Spike, aaron@ekips.org
+Copyright (C) 2005,2007 Aaron Spike, aaron@ekips.org
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
help="maximum segment length")
def effect(self):
for id, node in self.selected.iteritems():
- if node.tagName == 'path':
- d = node.attributes.getNamedItem('d')
- p = cubicsuperpath.parsePath(d.value)
+ if node.tag == inkex.addNS('path','svg'):
+ p = cubicsuperpath.parsePath(node.get('d'))
#lens, total = csplength(p)
#avg = total/numlengths(lens)
new[-1].append(sub[i])
i+=1
- d.value = cubicsuperpath.formatPath(new)
+ node.set('d',cubicsuperpath.formatPath(new))
e = SplitIt()
e.affect()