diff options
Diffstat (limited to 'gerbonara/gerber/render/cairo_backend.py')
-rw-r--r-- | gerbonara/gerber/render/cairo_backend.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gerbonara/gerber/render/cairo_backend.py b/gerbonara/gerber/render/cairo_backend.py index cb2f37c..d9c197d 100644 --- a/gerbonara/gerber/render/cairo_backend.py +++ b/gerbonara/gerber/render/cairo_backend.py @@ -596,7 +596,7 @@ class GerberCairoContext(GerberContext): # caused by flipping the axis. clp.ymin = math.floor( (self.scale[1] * ymin) - math.ceil(self.origin_in_pixels[1])) - clp.ymax = math.floor( + clp.ymax = math.ceil( (self.scale[1] * ymax) - math.floor(self.origin_in_pixels[1])) # Calculate width and height, rounded to the nearest pixel |