diff options
author | Garret Fick <garret@ficksworkshop.com> | 2015-12-02 12:44:30 +0800 |
---|---|---|
committer | Garret Fick <garret@ficksworkshop.com> | 2015-12-02 12:44:30 +0800 |
commit | d69f50e0f62570a4c327cb8fe4f886f439196010 (patch) | |
tree | 571d519f91f4852b283d0f7a5ce7c61be4767b75 /gerber/primitives.py | |
parent | 8eede187f3f644c4f8a0de0dc5825dc4c00c7b8f (diff) | |
download | gerbonara-d69f50e0f62570a4c327cb8fe4f886f439196010.tar.gz gerbonara-d69f50e0f62570a4c327cb8fe4f886f439196010.tar.bz2 gerbonara-d69f50e0f62570a4c327cb8fe4f886f439196010.zip |
Make the hit accessible from the drawable Hit, fix crash with cario drawing rect
Diffstat (limited to 'gerber/primitives.py')
-rw-r--r-- | gerber/primitives.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gerber/primitives.py b/gerber/primitives.py index 0ac12af..1e26f19 100644 --- a/gerber/primitives.py +++ b/gerber/primitives.py @@ -741,11 +741,12 @@ class SquareRoundDonut(Primitive): class Drill(Primitive):
""" A drill hole
"""
- def __init__(self, position, diameter, **kwargs):
+ def __init__(self, position, diameter, hit, **kwargs):
super(Drill, self).__init__('dark', **kwargs)
validate_coordinates(position)
self.position = position
self.diameter = diameter
+ self.hit = hit
self._to_convert = ['position', 'diameter']
@property
|