mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 14:54:56 +01:00
Canvas: remove dangling cairo path in Arc or ConstraintPacker if fill was requested but not outline
This commit is contained in:
parent
1d96bad59f
commit
f118b3ab53
2 changed files with 10 additions and 2 deletions
|
|
@ -80,7 +80,11 @@ Arc::render (Rect const & /*area*/, Cairo::RefPtr<Cairo::Context> context) const
|
|||
|
||||
if (fill()) {
|
||||
setup_fill_context (context);
|
||||
context->fill_preserve ();
|
||||
if (outline()) {
|
||||
context->fill_preserve ();
|
||||
} else {
|
||||
context->fill ();
|
||||
}
|
||||
}
|
||||
|
||||
if (outline()) {
|
||||
|
|
|
|||
|
|
@ -756,7 +756,11 @@ ConstraintPacker::render (Rect const & area, Cairo::RefPtr<Cairo::Context> conte
|
|||
|
||||
setup_fill_context (context);
|
||||
context->rectangle (draw.x0, draw.y0, draw.width(), draw.height());
|
||||
context->fill_preserve ();
|
||||
if (outline()) {
|
||||
context->fill_preserve ();
|
||||
} else {
|
||||
context->fill ();
|
||||
}
|
||||
}
|
||||
|
||||
if (outline()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue