mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-09 16:24:57 +01:00
ArdourCanvas::Arc (i.e. Circle) should allow for child items to be drawn
This commit is contained in:
parent
9be853d555
commit
267229c03c
1 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue