diff options
Diffstat (limited to 'gerbonara/gerber/render/cairo_backend.py')
-rw-r--r-- | gerbonara/gerber/render/cairo_backend.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gerbonara/gerber/render/cairo_backend.py b/gerbonara/gerber/render/cairo_backend.py index a7baf84..431ab94 100644 --- a/gerbonara/gerber/render/cairo_backend.py +++ b/gerbonara/gerber/render/cairo_backend.py @@ -608,9 +608,7 @@ class GerberCairoContext(GerberContext): """ class Clip: def __init__(clp, primitive): - x_range, y_range = primitive.bounding_box - xmin, xmax = x_range - ymin, ymax = y_range + (xmin, ymin), (xmax, ymax) = primitive.bounding_box # Round bounds to the nearest pixel outside of the primitive clp.xmin = math.floor(self.scale[0] * xmin) |