Fix resizing of ellipses

Fixes #864.
This commit is contained in:
Arjan Molenaar 2021-06-16 17:45:33 +02:00
parent 433d41289b
commit 50af854e46
No known key found for this signature in database
GPG Key ID: BF977B918996CB13

View File

@ -37,9 +37,10 @@ class Ellipse(ElementPresentation):
def draw(self, context):
cr = context.cairo
x, y = self.handles()[0].pos
rx = self.width / 2.0
ry = self.height / 2.0
cr.move_to(self.width, ry)
path_ellipse(cr, rx, ry, self.width, self.height)
cr.move_to(x + self.width, y + ry)
path_ellipse(cr, x + rx, y + ry, self.width, self.height)
stroke(context)