Skip to content

Commit

Permalink
fix for Coords.add()
Browse files Browse the repository at this point in the history
  • Loading branch information
poke1024 committed Sep 9, 2016
1 parent 1912b64 commit 3decd57
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mathics/builtin/graphics.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def pos(self):

def add(self, x, y):
p = (self.p[0] + x, self.p[1] + y)
return Coords(self.graphics, pos=p, d=self.d)
return Coords(self.graphics, pos=p)


class AxisCoords(Coords):
Expand All @@ -95,6 +95,9 @@ def pos(self):
else:
return p

def add(self, x, y):
raise NotImplementedError


def cut(value):
"Cut values in graphics primitives (not displayed otherwise in SVG)"
Expand Down

0 comments on commit 3decd57

Please sign in to comment.