Skip to content

Commit

Permalink
Removed unneeded if statement.
Browse files Browse the repository at this point in the history
  • Loading branch information
amolenaar committed Jul 29, 2012
1 parent 588d5cb commit 55b68fe
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions gaphas/item.py
Expand Up @@ -448,18 +448,17 @@ def normalize(self):
updated = False
handles = self._handles
handles = (handles[NW], handles[SE])
if handles:
x, y = map(float, handles[0].pos)
if x:
self.matrix.translate(x, 0)
updated = True
for h in handles:
h.pos.x -= x
if y:
self.matrix.translate(0, y)
updated = True
for h in handles:
h.pos.y -= y
x, y = map(float, handles[0].pos)
if x:
self.matrix.translate(x, 0)
updated = True
for h in handles:
h.pos.x -= x
if y:
self.matrix.translate(0, y)
updated = True
for h in handles:
h.pos.y -= y
return updated

def point(self, pos):
Expand Down

0 comments on commit 55b68fe

Please sign in to comment.