parent
433d41289b
commit
50af854e46
@ -37,9 +37,10 @@ class Ellipse(ElementPresentation):
|
|||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
cr = context.cairo
|
cr = context.cairo
|
||||||
|
|
||||||
|
x, y = self.handles()[0].pos
|
||||||
rx = self.width / 2.0
|
rx = self.width / 2.0
|
||||||
ry = self.height / 2.0
|
ry = self.height / 2.0
|
||||||
|
|
||||||
cr.move_to(self.width, ry)
|
cr.move_to(x + self.width, y + ry)
|
||||||
path_ellipse(cr, rx, ry, self.width, self.height)
|
path_ellipse(cr, x + rx, y + ry, self.width, self.height)
|
||||||
stroke(context)
|
stroke(context)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user