diff options
author | Garret Fick <garret@ficksworkshop.com> | 2016-07-17 21:04:15 +0800 |
---|---|---|
committer | Garret Fick <garret@ficksworkshop.com> | 2016-07-17 21:04:15 +0800 |
commit | 34f20ee90fc54ca046460bfae06bce927870536f (patch) | |
tree | f29e30bf0747b45cab5545ad4d49ff07518aad00 /gerber/rs274x.py | |
parent | f0585baefa54c5cd891ba04c81053956b1a59977 (diff) | |
parent | af5541ac93b222c05229ee05c9def8dbae5f6e25 (diff) | |
download | gerbonara-34f20ee90fc54ca046460bfae06bce927870536f.tar.gz gerbonara-34f20ee90fc54ca046460bfae06bce927870536f.tar.bz2 gerbonara-34f20ee90fc54ca046460bfae06bce927870536f.zip |
Manually merge af5541ac93b222c05229ee05c9def8dbae5f6e25
Diffstat (limited to 'gerber/rs274x.py')
-rw-r--r-- | gerber/rs274x.py | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/gerber/rs274x.py b/gerber/rs274x.py index f8b3222..260fbf8 100644 --- a/gerber/rs274x.py +++ b/gerber/rs274x.py @@ -114,16 +114,13 @@ class GerberFile(CamFile): def bounds(self): min_x = min_y = 1000000 max_x = max_y = -1000000 - for stmt in [stmt for stmt in self.statements if isinstance(stmt, CoordStmt)]: if stmt.x is not None: min_x = min(stmt.x, min_x) max_x = max(stmt.x, max_x) - if stmt.y is not None: min_y = min(stmt.y, min_y) max_y = max(stmt.y, max_y) - return ((min_x, max_x), (min_y, max_y)) @property |