13
0

ArdourCanvas::Arc (i.e. Circle) should allow for child items to be drawn

This commit is contained in:
Ben Loftis 2022-01-18 15:50:55 -06:00
parent 9be853d555
commit 267229c03c

View File

@ -68,7 +68,7 @@ Arc::compute_bounding_box () const
}
void
Arc::render (Rect const & /*area*/, Cairo::RefPtr<Cairo::Context> context) const
Arc::render (Rect const & area, Cairo::RefPtr<Cairo::Context> context) const
{
if (_radius <= 0.0 || _arc_degrees <= 0.0 || (!fill() && !outline())) {
return;
@ -91,6 +91,8 @@ Arc::render (Rect const & /*area*/, Cairo::RefPtr<Cairo::Context> context) const
setup_outline_context (context);
context->stroke ();
}
render_children (area, context);
}
void