Commit 037979a0 authored by Carlos Garcia Campos's avatar Carlos Garcia Campos

[cairo] If there's a soft mask available when filling, apply the mask instead of filling

Fixes bug #8474.
parent 46380d36
......@@ -668,7 +668,12 @@ void CairoOutputDev::fill(GfxState *state) {
cairo_set_source (cairo, fill_pattern);
LOG(printf ("fill\n"));
//XXX: how do we get the path
cairo_fill (cairo);
if (mask) {
cairo_clip (cairo);
cairo_mask (cairo, mask);
} else {
cairo_fill (cairo);
}
if (cairo_shape) {
cairo_set_fill_rule (cairo_shape, CAIRO_FILL_RULE_WINDING);
doPath (cairo_shape, state, state->getPath());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment