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