Skip to content
This repository has been archived by the owner on Feb 20, 2018. It is now read-only.

Commit

Permalink
Merge pull request #6 from tseglevskiy/bugfix
Browse files Browse the repository at this point in the history
Fix for martymcguire/inkscape-unicorn#5
  • Loading branch information
martymcguire committed Aug 2, 2014
2 parents 11dd197 + 4fecad2 commit 8ca6dfb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/unicorn/svg_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def load(self, node, mat):

class SvgLine(SvgPath):
def load(self, node, mat):
newpath = new_path_from_node(node)
newpath = self.new_path_from_node(node)
x1 = float(node.get('x1'))
y1 = float(node.get('y1'))
x2 = float(node.get('x2'))
Expand All @@ -128,7 +128,7 @@ def load(self, node, mat):

class SvgPolyLine(SvgPath):
def load(self, node, mat):
newpath = new_path_from_node(node)
newpath = self.new_path_from_node(node)
pl = node.get('points','').strip()
if pl == '':
return
Expand Down Expand Up @@ -159,7 +159,7 @@ def make_ellipse_path(rx, ry, node):
'0 1 0 %f, %f ' % (x2,cy) + \
'A %f,%f ' % (rx,ry) + \
'0 1 0 %f,%f' % (x1,cy)
newpath = new_path_from_node(node)
newpath = self.new_path_from_node(node)
newpath.set('d',d)
return newpath

Expand Down

0 comments on commit 8ca6dfb

Please sign in to comment.