Permalink
Browse files

Removed unneeded if statement.

  • Loading branch information...
1 parent 588d5cb commit 55b68fe3fda159e010edb2248559ce0cddeac842 @amolenaar committed Jul 29, 2012
Showing with 11 additions and 12 deletions.
  1. +11 −12 gaphas/item.py
View
@@ -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):

0 comments on commit 55b68fe

Please sign in to comment.