Canvas: remove dangling cairo path in Arc or ConstraintPacker if fill was requested but not outline
This commit is contained in:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user